Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dtu-quiz
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
enote
dtu-quiz
Commits
c747b60d
Commit
c747b60d
authored
9 years ago
by
iaibrys
Browse files
Options
Downloads
Patches
Plain Diff
Use VOLUME instead of add for the demo.
parent
9bd3cc4b
Branches
demo1
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+10
-9
10 additions, 9 deletions
Dockerfile
Gemfile.lock
+0
-3
0 additions, 3 deletions
Gemfile.lock
docker-compose.prod.yml
+2
-0
2 additions, 0 deletions
docker-compose.prod.yml
with
12 additions
and
12 deletions
Dockerfile
+
10
−
9
View file @
c747b60d
...
@@ -14,7 +14,7 @@ RUN dnf -y install git
...
@@ -14,7 +14,7 @@ RUN dnf -y install git
# required by letsencrypt. if it's not present, the SSL connection to the let's encrypt server will fail
# required by letsencrypt. if it's not present, the SSL connection to the let's encrypt server will fail
RUN
dnf
-y
install
openssl
RUN
dnf
-y
install
openssl
RUN
mkdir
-p
/dtu-quiz/app
#
RUN mkdir -p /dtu-quiz/app
WORKDIR
/dtu-quiz/app
WORKDIR
/dtu-quiz/app
RUN
gem
install
foreman
RUN
gem
install
foreman
...
@@ -23,13 +23,14 @@ RUN pwd
...
@@ -23,13 +23,14 @@ RUN pwd
CMD
["sh","-c", "./run-server.sh"]
CMD
["sh","-c", "./run-server.sh"]
# Install the necessary gems
# Install the necessary gems
COPY
Gemfile /dtu-quiz/app/Gemfile
#COPY Gemfile /dtu-quiz/app/Gemfile
COPY
Gemfile.lock /dtu-quiz/app/Gemfile.lock
#COPY Gemfile.lock /dtu-quiz/app/Gemfile.lock
RUN
bundle
install
#RUN pwd && ls -als
#RUN bundle install
# Copy application code to container
# Copy application code to container
COPY
. /dtu-quiz/app
#
COPY . /dtu-quiz/app
RUN
rm
-rf
tmp
#
RUN rm -rf tmp
RUN
rm
-rf
log
#
RUN rm -rf log
RUN
mkdir
tmp
#
RUN mkdir tmp
RUN
mkdir
log
#
RUN mkdir log
This diff is collapsed.
Click to expand it.
Gemfile.lock
+
0
−
3
View file @
c747b60d
...
@@ -333,6 +333,3 @@ DEPENDENCIES
...
@@ -333,6 +333,3 @@ DEPENDENCIES
underscore-rails
underscore-rails
web-console (~> 2.0)
web-console (~> 2.0)
websocket-rails (= 0.7.0)
websocket-rails (= 0.7.0)
BUNDLED WITH
1.10.6
This diff is collapsed.
Click to expand it.
docker-compose.prod.yml
+
2
−
0
View file @
c747b60d
...
@@ -32,5 +32,7 @@ quiz:
...
@@ -32,5 +32,7 @@ quiz:
-
"
3000"
-
"
3000"
links
:
links
:
-
mongodb:db
-
mongodb:db
volumes
:
-
.:/dtu-quiz/app
environment
:
environment
:
RAILS_ENV
:
'
production'
RAILS_ENV
:
'
production'
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