Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scheduling-system
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SMASCH
scheduling-system
Commits
19ab0db2
Commit
19ab0db2
authored
4 years ago
by
Piotr Gawron
Browse files
Options
Downloads
Patches
Plain Diff
fix npm install in docker
parent
b7190a03
No related branches found
No related tags found
3 merge requests
!316
Merge 1.0.1
,
!315
1.0.1 into master
,
!313
Docker issue
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+11
-0
11 additions, 0 deletions
Dockerfile
local_settings_ci.py
+2
-0
2 additions, 0 deletions
local_settings_ci.py
with
13 additions
and
0 deletions
Dockerfile
+
11
−
0
View file @
19ab0db2
...
@@ -8,6 +8,17 @@ RUN pip install -r requirements.txt --default-timeout=180 -i https://pypi.lcsb.u
...
@@ -8,6 +8,17 @@ RUN pip install -r requirements.txt --default-timeout=180 -i https://pypi.lcsb.u
ADD
. /code/
ADD
. /code/
RUN
cp
local_settings_ci.py smash/smash/local_settings.py
RUN
cp
local_settings_ci.py smash/smash/local_settings.py
WORKDIR
/code/smash
WORKDIR
/code/smash
ENV
NODE_VERSION=12.6.0
RUN
apt
install
-y
curl
RUN
curl
-o-
https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
ENV
NVM_DIR=/root/.nvm
RUN
.
"
$NVM_DIR
/nvm.sh"
&&
nvm
install
${
NODE_VERSION
}
RUN
.
"
$NVM_DIR
/nvm.sh"
&&
nvm use v
${
NODE_VERSION
}
RUN
.
"
$NVM_DIR
/nvm.sh"
&&
nvm
alias
default v
${
NODE_VERSION
}
ENV
PATH="/root/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}"
RUN
node
--version
RUN
npm
--version
RUN
npm
install
ENTRYPOINT
[ "/bin/sh" ]
ENTRYPOINT
[ "/bin/sh" ]
CMD
[ "manage.py runserver 0.0.0.0:8002" ]
CMD
[ "manage.py runserver 0.0.0.0:8002" ]
...
...
This diff is collapsed.
Click to expand it.
local_settings_ci.py
+
2
−
0
View file @
19ab0db2
...
@@ -4,6 +4,8 @@ SECRET_KEY = 'Paste long random string here' # Insert long random string
...
@@ -4,6 +4,8 @@ SECRET_KEY = 'Paste long random string here' # Insert long random string
# SECURITY WARNING: don't run with debug turned on in production!
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG
=
True
DEBUG
=
True
SERVE_STATIC
=
True
# Database
# Database
# https://docs.djangoproject.com/en/1.10/ref/settings/#databases
# https://docs.djangoproject.com/en/1.10/ref/settings/#databases
...
...
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