Skip to content

Commit

Permalink
chore: terraform integration test image
Browse files Browse the repository at this point in the history
  • Loading branch information
neurosnap committed Jul 17, 2024
1 parent 0072031 commit 1c06c9c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .aptible/Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
main: npm start
cron: PORT=3001 npm start
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ COPY package-lock.json /app
RUN npm ci

COPY . /app
COPY .aptible /.aptible

EXPOSE 3000

ARG DATABASE_URL

CMD [ "npm", "start" ]
CMD [ "npm", "start" ]
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
clean:
rm -rf .aptible
.PHONY: clean

build: clean
mkdir .aptible
echo "main: npm start\ncron: PORT=3001 npm start" > .aptible/Procfile
docker build -t quay.io/aptible/terraform-multiservice-test:latest .
.PHONY: build

push:
docker push quay.io/aptible/terraform-multiservice-test:latest
.PHONY: push

bp: build push
.PHONY: bp

0 comments on commit 1c06c9c

Please sign in to comment.