Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
workspaces
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
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ssa
workspaces
Commits
411ff473
Commit
411ff473
authored
4 years ago
by
Andrew Kapuscinski
Browse files
Options
Downloads
Patches
Plain Diff
Sws 21 add frontend to local env
parent
26b37862
No related branches found
No related tags found
1 merge request
!68
Sws 21 add frontend to local env
Pipeline
#469
passed
4 years ago
Stage: build-dev
Stage: unit-test-dev
Stage: push-dev
Stage: clean-images
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+0
-9
0 additions, 9 deletions
.gitlab-ci.yml
apps/web/Dockerfile.local
+16
-1
16 additions, 1 deletion
apps/web/Dockerfile.local
docker-compose.yml
+10
-9
10 additions, 9 deletions
docker-compose.yml
with
26 additions
and
19 deletions
.gitlab-ci.yml
+
0
−
9
View file @
411ff473
...
...
@@ -148,27 +148,18 @@ clean build workflow:
variables
:
SERVICE_NAME
:
"
workflow"
extends
:
.cleanup
rules
:
-
if
:
'
$CI_PIPELINE_SOURCE
==
"merge_request_event"
&&
$CI_COMMIT_MESSAGE
=~
/\A(?i)-debug/'
when
:
never
clean build capability
:
stage
:
clean-images
variables
:
SERVICE_NAME
:
"
capability"
extends
:
.cleanup
rules
:
-
if
:
'
$CI_PIPELINE_SOURCE
==
"merge_request_event"
&&
$CI_COMMIT_MESSAGE
=~
/\A(?i)-debug/'
when
:
never
clean build notification
:
stage
:
clean-images
variables
:
SERVICE_NAME
:
"
notification"
extends
:
.cleanup
rules
:
-
if
:
'
$CI_PIPELINE_SOURCE
==
"merge_request_event"
&&
$CI_COMMIT_MESSAGE
=~
/\A(?i)-debug/'
when
:
never
# Deploy Stages
...
...
This diff is collapsed.
Click to expand it.
apps/web/Dockerfile.local
+
16
−
1
View file @
411ff473
FROM node:14.15.1-alpine3.12
# set container working directory to /code
WORKDIR /code/
ENTRYPOINT ["./bin/boot-local.sh"]
\ No newline at end of file
# copy web app from host to container
COPY ./apps/web ./
# install dependencies
RUN apk add --no-cache \
git \
python2 \
g++ \
make
# install node_modules
RUN npm install
# start Angular development server
CMD [ "./node_modules/.bin/ng", "serve", "--host", "0.0.0.0" ]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
10
−
9
View file @
411ff473
...
...
@@ -69,12 +69,13 @@ services:
-
./apps:/code/src/apps
-
./testing:/code/src/testing
# frontend:
# build:
# context: ./apps/web/
# dockerfile: Dockerfile.local
# ports:
# - "4200:4200"
# volumes:
# - ./apps/web:/code
# - /code/node_modules
frontend
:
build
:
context
:
.
dockerfile
:
./apps/web/Dockerfile.local
init
:
true
ports
:
-
"
4200:4200"
volumes
:
-
./apps/web:/code
-
/code/node_modules
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