Skip to content

Commit

Permalink
Updates to secrets manager; added foundation for e2e testing; began i…
Browse files Browse the repository at this point in the history
…nitialization for pipeline builds
  • Loading branch information
Matt-Bessette committed Apr 29, 2023
1 parent 29d36a5 commit bdfab94
Show file tree
Hide file tree
Showing 22 changed files with 9,846 additions and 421 deletions.
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Dockerfile
.dockerignore
node_modules
npm-debug.log
dist
20 changes: 20 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
kind: pipeline
type: docker
name: default
steps:
- name: build backend
image: docker.thiccdata.io/nvm-node-debian:latest
commands:
- docker build -t docker.thiccdata.io/mtg-event-manager-backend:latest -f ./backend/Dockerfile ./
- docker push docker.thiccdata.io/mtg-event-manager-backend:latest
volumes:
- name: docker
path: /var/run/docker.sock
trigger:
branch:
- main

volumes:
- name: docker
host:
path: /var/run/docker.sock
25 changes: 25 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM node:18.14.2-alpine As build

WORKDIR /home/node/app

COPY --chown=node:node package*.json ./

RUN npm ci

USER node

COPY --chown=node:node . .

RUN npm run build

ENV NODE_ENV production

RUN npm ci --only=production && npm cache clean --force


FROM node:18.14.2-alpine As production

COPY --chown=node:node --from=build /home/node/app/node_modules ./node_modules
COPY --chown=node:node --from=build /home/node/app/dist ./dist

CMD ["node", "dist/main.js"]
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
version: 3.7
services:
s3_provider:
image: minio
Loading

0 comments on commit bdfab94

Please sign in to comment.