Skip to content

Commit

Permalink
fix: Make deploy use new build scripts (#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylecarbs committed Mar 8, 2022
1 parent 3eb6fb7 commit eea5b9d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ database/generate: fmt/sql database/dump.sql database/query.sql
.PHONY: database/generate

docker/image/coder: build
cp ./images/coder/run.sh ./bin
docker build --network=host -t us-docker.pkg.dev/coder-blacktriangle-dev/ci/coder:latest -f images/coder/Dockerfile ./bin
cp ./images/coder/run.sh ./dist/coder_$(GOOS)_$(GOARCH)
docker build --network=host -t us-docker.pkg.dev/coder-blacktriangle-dev/ci/coder:latest -f images/coder/Dockerfile ./dist/coder_$(GOOS)_$(GOARCH)
.PHONY: docker/build

fmt/prettier:
Expand Down
12 changes: 4 additions & 8 deletions images/coder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,10 @@ RUN yum install -y yum-utils
RUN yum-config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo
RUN yum install -y terraform

COPY coderd /coder/coderd
RUN chmod +x /coder/coderd
COPY coder /coder
RUN chmod +x /coder

COPY run.sh /coder/run.sh
RUN chmod +x /coder/run.sh

# Once `provisionerd` is available, we'll also need that binary
# COPY bin/provisionerd /provisionerd
# RUN chmod +x /provisionerd
COPY run.sh /run.sh
RUN chmod +x /run.sh

ENTRYPOINT ["/coder/run.sh"]
2 changes: 1 addition & 1 deletion images/coder/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ function create_initial_user() {
(
trap 'kill 0' SIGINT
create_initial_user &
/coder/coderd --address=":$PORT"
/coder daemon --address=":$PORT"
)

0 comments on commit eea5b9d

Please sign in to comment.