- Docker Images
- Environment Variables
- Build arguments
- Tools
- Changelog
- Crond
- SSHD
- Adding SSH key
- Complete Go stack
- Orchestration Actions
For better reliability we release images with stability tags (wodby/go:1.26-X.X.X) which correspond to git tags. We strongly recommend using images only with stability tags.
About images:
- All images are based on Alpine Linux
- Base image: golang
- GitHub actions builds
- Docker Hub
Supported tags and respective Dockerfile links:
1.26,1,latest(Dockerfile)1.25(Dockerfile)1.26-dev,1-dev,dev(Dockerfile)1.25-dev(Dockerfile)1.26-dev-macos,1-dev-macos(Dockerfile)1.25-dev-macos(Dockerfile)
Images with -dev tag have sudo allowed for all commands for the wodby user and include build dependencies for cgo-based projects.
Same as -dev but the default user/group wodby has uid/gid 501/20 to match the macOS default user/group ids.
All images are built for linux/amd64, -dev-macos images are additionally built for linux/arm64.
| Variable | Default value |
|---|---|
APP_ROOT |
/usr/src/app |
FILES_DIR |
/mnt/files |
GIT_USER_EMAIL |
wodby@example.com |
GIT_USER_NAME |
wodby |
GOCACHE |
/home/wodby/.cache/go-build |
GOMODCACHE |
/home/wodby/go/pkg/mod |
GOPATH |
/home/wodby/go |
SSH_DISABLE_STRICT_KEY_CHECKING |
|
SSH_PRIVATE_KEY |
|
SSHD_GATEWAY_PORTS |
no |
SSHD_HOST_KEYS_DIR |
/etc/ssh |
SSHD_LOG_LEVEL |
INFO |
SSHD_PASSWORD_AUTHENTICATION |
no |
SSHD_PERMIT_USER_ENV |
no |
SSHD_USE_DNS |
yes |
| Argument | Default value |
|---|---|
GO_DEV |
|
WODBY_GROUP_ID |
1000 |
WODBY_USER_ID |
1000 |
Change WODBY_USER_ID and WODBY_GROUP_ID mainly for local dev image variants. If either value matches an existing system user/group id, the existing user/group will be deleted before creating the wodby user.
| Tool | all versions |
|---|---|
| Go toolchain | bundled from the upstream golang image |
| make | latest Alpine package |
| git | latest Alpine package |
Changes per stability tag are reflected in git tag descriptions under releases.
You can run Crond with this image by changing the command to sudo -E crond -f -d 0 and mounting a crontab file to ./crontab:/etc/crontabs/wodby. Example crontab file contents:
# min hour day month weekday command
*/1 * * * * echo "test" > /mnt/files/cron
You can run SSHD with this image by changing the command to sudo /usr/sbin/sshd -De and mounting authorized public keys to /home/wodby/.ssh/authorized_keys.
You can add a private SSH key to the container by mounting it to /home/wodby/.ssh/id_rsa.
See https://github.com/wodby/stack-go
Usage:
make COMMAND [params ...]
commands:
check-ready [host max_try wait_seconds delay_seconds]
files-import source
files-link public_dir