Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
Frontend V2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Contributor 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
GraphPolaris
Frontend V2
Commits
3f7b466c
Commit
3f7b466c
authored
3 years ago
by
thijsheijden
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' of git.science.uu.nl:graphpolaris/frontend-v2 into develop
parents
77d0e351
1d00a69c
No related branches found
Branches containing commit
Tags
v1.91.0
Tags containing commit
2 merge requests
!17
fix(storybook): :ambulance: adds babel config for module resolution of util projects
,
!15
May 2022 merge request
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.dockerignore
+1
-0
1 addition, 0 deletions
.dockerignore
.gitlab-ci.yml
+34
-6
34 additions, 6 deletions
.gitlab-ci.yml
Dockerfile
+9
-10
9 additions, 10 deletions
Dockerfile
with
44 additions
and
16 deletions
.dockerignore
0 → 100644
+
1
−
0
View file @
3f7b466c
node_modules
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
34
−
6
View file @
3f7b466c
...
@@ -2,6 +2,8 @@ image: node:16-alpine
...
@@ -2,6 +2,8 @@ image: node:16-alpine
stages
:
stages
:
-
setup
-
setup
-
test
-
test
-
build
-
dockerize
install-dependencies
:
install-dependencies
:
stage
:
setup
stage
:
setup
...
@@ -33,14 +35,40 @@ install-dependencies:
...
@@ -33,14 +35,40 @@ install-dependencies:
paths
:
paths
:
-
node_modules/.cache/nx
-
node_modules/.cache/nx
build
:
stage
:
test
extends
:
.distributed
script
:
-
yarn nx affected --base=HEAD~1 --target=build --parallel --max-parallel=3
test
:
test
:
stage
:
test
stage
:
test
extends
:
.distributed
extends
:
.distributed
script
:
script
:
-
yarn nx affected --base=HEAD~1 --target=test --parallel --max-parallel=2
-
yarn nx affected --base=HEAD~1 --target=test --parallel --max-parallel=2
build
:
stage
:
build
only
:
-
main
needs
:
-
install-dependencies
artifacts
:
paths
:
-
node_modules/.cache/nx
-
dist/apps/web-graphpolaris
script
:
# - yarn nx affected --base=HEAD~1 --target=build --parallel --max-parallel=3
# only build web-graphpolaris
-
yarn nx build web-graphpolaris --prod
build-docker
:
image
:
docker:stable
stage
:
dockerize
tags
:
-
docker
only
:
-
main
script
:
-
docker build --progress plain -t $CI_PROJECT_NAME-webserver-service:latest .
# after_script:
# - docker login datastropheregistry.azurecr.io -u $REGISTRY_USERNAME -p $REGISTRY_PASSWORD
# - if [[ ! -z $CI_COMMIT_BRANCH+x ]]; then DOCKER_TAG=$CI_COMMIT_BRANCH; else DOCKER_TAG=$CI_MERGE_REQUEST_TARGET_BRANCH_NAME; fi
# - docker tag $CI_PROJECT_NAME-webserver-service datastropheregistry.azurecr.io/$CI_PROJECT_NAME-webserver-service:$DOCKER_TAG
# - docker push datastropheregistry.azurecr.io/$CI_PROJECT_NAME-webserver-service:$DOCKER_TAG
dependencies
:
-
build
This diff is collapsed.
Click to expand it.
Dockerfile
+
9
−
10
View file @
3f7b466c
#
# Prepare nginx
# Prepare nginx
#
FROM nginx:1.19-alpine
FROM
nginx:1.19-alpine
#
WORKDIR /app
WORKDIR
/app
# # ! This copy source needs to be changed to reflect the actual app name
COPY
./dist/apps/web-graphpolaris /usr/share/nginx/html
# COPY ./dist/apps/frontend /usr/share/nginx/html
#
RUN rm /etc/nginx/conf.d/default.conf
RUN
rm
/etc/nginx/conf.d/default.conf
#
COPY nginx/nginx.conf /etc/nginx/conf.d
COPY
nginx/nginx.conf /etc/nginx/conf.d
#
# Fire up nginx
# Fire up nginx
#
EXPOSE 80
EXPOSE
80
#
CMD ["nginx", "-g", "daemon off;"]
CMD
["nginx", "-g", "daemon off;"]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment