Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
ss22-devops-project-app
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dobromir Palushev
ss22-devops-project-app
Merge requests
!42
updated logic of the test-job
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
updated logic of the test-job
just-a-test
into
staging
Overview
0
Commits
44
Pipelines
0
Changes
2
Merged
Dobromir Palushev
requested to merge
just-a-test
into
staging
2 years ago
Overview
0
Commits
44
Pipelines
0
Changes
2
Expand
updated the test stage in the app Dockerfile
0
0
Merge request reports
Viewing commit
2f519d28
Prev
Next
Show latest version
2 files
+
4
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
2f519d28
another try
· 2f519d28
Dobromir Palushev
authored
2 years ago
app/Dockerfile
+
2
−
6
Options
@@ -5,10 +5,6 @@ ARG NODEJS_VERSION='16.17.0'
FROM
node:$NODEJS_VERSION-alpine
AS
base
ARG
\
MONGODB_URL_TEST=mongodb://host.docker.internal:27017/todo-app \
JWT_SECRET_TEST=<my-very-secret-jwt>
ENV
\
PORT=<dynamically-set-from-k8s> \
MONGODB_URL=<dynamically-set-from-k8s> \
@@ -37,8 +33,8 @@ COPY ./server/package*.json ./
RUN
npm ci
--no-audit
--no-fund
ARG
\
MONGODB_URL_TEST \
JWT_SECRET_TEST
MONGODB_URL_TEST
=mongodb://host.docker.internal:27017/todo-app
\
JWT_SECRET_TEST
=<my-very-secret-jwt>
# MONGODB_URL and JWT_SECRET are available as env variables
RUN
MONGODB_URL
=
$MONGODB_URL_TEST
JWT_SECRET
=
$JWT_SECRET_TEST
npm run
test
Loading