Skip to content

Commit

Permalink
Make it possible to run the development script from within the docker…
Browse files Browse the repository at this point in the history
… container (#34)
  • Loading branch information
levisingularity authored May 28, 2024
1 parent 331e55a commit 8b35e78
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
11 changes: 11 additions & 0 deletions .docker/deployment/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM ubuntu:22.04

WORKDIR /opt

COPY ./scripts ./scripts

RUN apt -y update && \
apt -y install jq git curl && \
chmod +x ./scripts/deployment -R

SHELL [ "/bin/bash" ]
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
release:
./scripts/deployment/release.sh
release: build-deployment
@docker run --rm -it das-deployment:latest /opt/scripts/deployment/release.sh

deploy:
./scripts/deployment/fn_deploy.sh
deploy: build-deployment
@docker run --rm -it das-deployment:latest /opt/scripts/deployment/fn_deploy.sh

build-deployment:
@docker build -f .docker/deployment/Dockerfile -t das-deployment:latest .

build-semver:
@docker image build -t trueagi/das:semantic-versioning ./scripts/semver
Expand Down

0 comments on commit 8b35e78

Please sign in to comment.