Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
design-system-lib
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor 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
julkiset-sivut
design-system-lib
Commits
dfc37a3a
Commit
dfc37a3a
authored
5 years ago
by
Joni Korhonen
Browse files
Options
Downloads
Patches
Plain Diff
add docker-compose
parent
0e7304af
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+17
-0
17 additions, 0 deletions
Dockerfile
docker-compose.yml
+17
-0
17 additions, 0 deletions
docker-compose.yml
readme.md
+8
-3
8 additions, 3 deletions
readme.md
with
42 additions
and
3 deletions
d
ockerfile
→
D
ockerfile
+
17
−
0
View file @
dfc37a3a
FROM
node:12.16.1
FROM
node:erbium-alpine
WORKDIR
/usr/app
WORKDIR
/usr/src/app
COPY
package*.json ./
RUN
npm
install
RUN
npm
install
\
&&
chown
-R
node:node node_modules
\
&&
chmod
-R
o+rw node_modules
EXPOSE
3333
ENV
DOCS_LOCATION=/usr/src/app/tempdocuments
COPY
. .
ARG
COMMAND
USER
node
ENTRYPOINT
[ "npm", "run" ]
CMD
[ "start" ]
This diff is collapsed.
Click to expand it.
docker-compose.yml
0 → 100644
+
17
−
0
View file @
dfc37a3a
version
:
"
3"
services
:
huds
:
image
:
helsinkifi/huds
build
:
.
container_name
:
huds
ports
:
-
"
3333:3333"
volumes
:
-
./src:/usr/app/src
-
./dist:/usr/app/dist
-
./www:/usr/app/www
-
./stencil.config.ts:/usr/app/stencil.config.ts
-
./tailwind.config.js:/usr/app/tailwind.config.js
-
./tsconfig.json:/usr/app/tsconfig.json
-
./watchdocs.js:/usr/app/watchdocs.js
This diff is collapsed.
Click to expand it.
readme.md
+
8
−
3
View file @
dfc37a3a
...
...
@@ -54,6 +54,14 @@ NOTE: Even when you have the documentation files in Vuepress, you'll need to man
If you don't want or cannot install node and other dependencies, you can run the development setup locally in a container like this:
`docker-compose up`
Image can be rebuilt with
`docker-compose build`
if needed for example after a node package was added.
CAVEAT: This doesn't solve running libraty with Vuepress and that use case requires vanilla docker way of running.
### Vanilla docker way
First build the container
`docker build -t helsinkifi/huds .`
...
...
@@ -68,6 +76,3 @@ For example:
`docker run -v ${PWD}:/usr/src/app -p 3333:3333 helsinkifi/huds build`
TODO:
It's pretty annoying to copy paste long docker commands, so perhaps docker-compose would fit here. Anyone?
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