Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nscjekyllsetup
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Package 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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nationellt superdatorcentrum
nscjekyllsetup
Commits
fbee4585
Commit
fbee4585
authored
7 years ago
by
Prashanth Dwarakanath
Browse files
Options
Downloads
Plain Diff
fix conflict
parents
f6e5f86d
0f287ed3
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
+9
-6
9 additions, 6 deletions
Dockerfile
postsetup.sh
+4
-0
4 additions, 0 deletions
postsetup.sh
presetup.sh
+1
-1
1 addition, 1 deletion
presetup.sh
with
14 additions
and
7 deletions
Dockerfile
+
9
−
6
View file @
fbee4585
...
@@ -2,14 +2,17 @@ FROM debian
...
@@ -2,14 +2,17 @@ FROM debian
RUN
apt-get update
&&
apt-get
install
-y
git wget gcc make libssl-dev libreadline-dev zlib1g-dev vim bzip2 locales pandoc python2.7
RUN
apt-get update
&&
apt-get
install
-y
git wget gcc make libssl-dev libreadline-dev zlib1g-dev vim bzip2 locales pandoc python2.7
RUN
useradd nscuser
--shell
/bin/bash
RUN
useradd nscuser
--shell
/bin/bash
WORKDIR
/usr/local/src
RUN
mkdir
-p
/home/nscuser
WORKDIR
/home/nscuser
RUN
git clone https://github.com/snic-nsc/nscjekyllsetup.git
RUN
git clone https://github.com/snic-nsc/nscjekyllsetup.git
WORKDIR
/
usr/local/src
/nscjekyllsetup
WORKDIR
/
home/nscuser
/nscjekyllsetup
RUN
git checkout
'v1.0
1
'
RUN
git checkout
'v1.0
2
'
RUN
bash presetup.sh
RUN
bash presetup.sh
RUN
chown
-R
nscuser:nscuser /
usr/local/src
RUN
chown
-R
nscuser:nscuser /
home/nscuser
USER
nscuser
USER
nscuser
WORKDIR
/
usr/local/src
/nscjekyllsetup
WORKDIR
/
home/nscuser
/nscjekyllsetup
RUN
bash setup.sh
RUN
bash setup.sh
WORKDIR
/usr/local/src
USER
root
RUN
bash postsetup.sh
WORKDIR
/usr/local/src/nscjekyllsetup
ENTRYPOINT
/bin/bash
ENTRYPOINT
/bin/bash
This diff is collapsed.
Click to expand it.
postsetup.sh
0 → 100644
+
4
−
0
View file @
fbee4585
#!/bin/bash
mv
/home/nscuser/.rbenv /usr/local/src/
mv
/home/nscuser/nscjekyllsetup /usr/local/src
This diff is collapsed.
Click to expand it.
presetup.sh
+
1
−
1
View file @
fbee4585
...
@@ -5,5 +5,5 @@
...
@@ -5,5 +5,5 @@
echo
"en_US.UTF-8 UTF-8"
>
/etc/locale.gen
echo
"en_US.UTF-8 UTF-8"
>
/etc/locale.gen
locale-gen
locale-gen
echo
'export LANG=en_US.UTF-8'
>>
/etc/bash.bashrc
echo
'export LANG=en_US.UTF-8'
>>
/etc/bash.bashrc
echo
'export PATH=/usr/local/src/.rbenv/bin:$PATH'
>>
/etc/bash.bashrc
echo
'export PATH=/usr/local/src/.rbenv/bin:
/home/nscuser/.rbenv/bin:
$PATH'
>>
/etc/bash.bashrc
ln
-s
/usr/bin/python2.7 /usr/bin/python
ln
-s
/usr/bin/python2.7 /usr/bin/python
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