-
Notifications
You must be signed in to change notification settings - Fork 887
feat: build & release cross-platform Docker images #1178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
e7d26d1
feat: add dockerfile and docker-compose
bpmct f373a27
build docker images on release
bpmct 9bc38cc
add Docker dependencies to release.yaml
bpmct 2d91857
remove docker compose for now
bpmct 741d9cd
fix license mismatch
bpmct 801e5b5
add docker-compose
bpmct 8cf29f3
rename volume
bpmct 0df2fe6
add WF dispatch for debugging
bpmct File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM alpine | ||
|
||
# Generated by goreleaser on `goreleaser release` | ||
ADD coder /opt/coder | ||
|
||
ENTRYPOINT [ "/opt/coder", "server" ] | ||
bpmct marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
version: "3.9" | ||
services: | ||
coder: | ||
image: ghcr.io/coder/coder:v${CODER_VERSION:-0.5.5}-${ARCH:-amd64} | ||
ports: | ||
- "7080:7080" | ||
environment: | ||
CODER_PG_CONNECTION_URL: "postgresql://username:password@database/coder?sslmode=disable" | ||
CODER_ADDRESS: "0.0.0.0:7080" | ||
depends_on: | ||
database: | ||
condition: service_healthy | ||
database: | ||
image: "postgres:14.2" | ||
environment: | ||
POSTGRES_USER: ${POSTGRES_USER:-username} # The PostgreSQL user (useful to connect to the database) | ||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password} # The PostgreSQL password (useful to connect to the database) | ||
POSTGRES_DB: ${POSTGRES_DB:-coder} # The PostgreSQL default database (automatically created at first launch) | ||
volumes: | ||
- coder_data:/var/lib/postgresql/data # Use "docker volume rm coder_coder_data" to reset Coder | ||
healthcheck: | ||
test: | ||
[ | ||
"CMD-SHELL", | ||
"pg_isready -U ${POSTGRES_USER:-username} -d ${POSTGRES_DB:-coder}", | ||
] | ||
interval: 5s | ||
timeout: 5s | ||
retries: 5 | ||
volumes: | ||
coder_data: |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, we need a PAT here. Will probably need help from an org admin to get this
from: https://carlosbecker.com/posts/multi-platform-docker-images-goreleaser-gh-actions/