Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
docker-coast-build
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
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
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
ifs
coast
docker-coast-build
Commits
229608ab
Commit
229608ab
authored
5 years ago
by
Marcel Huber
Browse files
Options
Downloads
Plain Diff
Merge branch 'hotfix/20190815-1'
pip.conf moved to system wide config location
parents
d86e1f4f
b67e6f1e
No related branches found
No related tags found
No related merge requests found
Pipeline
#324429
passed
5 years ago
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+12
-10
12 additions, 10 deletions
Dockerfile
with
12 additions
and
10 deletions
Dockerfile
+
12
−
10
View file @
229608ab
...
...
@@ -44,35 +44,37 @@ RUN useradd --create-home --shell /bin/bash $USERNAME && \
npm i
--global
diff-so-fancy
ADD
gitconfig $HOMEDIR/.config/git/config
RUN
chown
-R
$USERNAME
:
$USERNAME
$HOMEDIR
/.config
RUN
printf
"docky ALL=(ALL) ALL
\n\
Defaults:
$USERNAME
!authenticate,!pam_session,env_reset
\n
"
>
/etc/sudoers.d/
$USERNAME
\
&&
chmod
0440 /etc/sudoers.d/
$USERNAME
ENV
SOURCEDIR=/src \
BUILDOUTPUTDIR=/generated \
VENVDIR=$HOMEDIR/.v27scons \
BASH_ENV=$HOMEDIR/.bash_aliases
RUN
printf
"[global]
\n\
timeout=60
\n\
index-url=https://pypi.org/simple
\n\
extra-index-url=https://devpi.coast-project.org/coast/CoastSconsider/+simple
\n\
"
>
/etc/pip.conf
USER
$USERNAME
RUN
git config
--global
core.pager
"diff-so-fancy | less --tabs=4 -RFX"
RUN
mkdir
-p
~/.pip
&&
\
printf
"[global]
\n\
index-url=https://pypi.python.org/simple
\n\
extra-index-url=https://devpi.coast-project.org/coast/CoastSconsider/+simple
\n\
"
>
~/.pip/pip.conf
\
RUN
mkdir
-p
~/.pip
\
&&
sed
-i
-r
'/^case \$-/,/^esac/ d'
$HOMEDIR
/.bashrc
\
&&
echo
"test -d
\"\$
VENVDIR
\"
&& .
\$
VENVDIR/bin/activate"
>>
$HOMEDIR
/.bash_aliases
RUN
virtualenv
$VENVDIR
\
&&
.
$VENVDIR
/bin/activate
\
RUN
virtualenv
$VENVDIR
\
&&
.
$VENVDIR
/bin/activate
\
&&
pip
install
--upgrade
pip
USER
root
ADD
entrypoint.sh /entrypoint.sh
COPY
entrypoint-init.d /entrypoint-init.d
RUN
printf
"docky ALL=(ALL) ALL
\n\
Defaults:
$USERNAME
!authenticate,!pam_session,env_reset
\n
"
>
/etc/sudoers.d/
$USERNAME
\
&&
chmod
0440 /etc/sudoers.d/
$USERNAME
RUN
mkdir
-p
-m
1777
$SOURCEDIR
$BUILDOUTPUTDIR
...
...
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