Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
opennsa3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michal Hažlinský
opennsa3
Commits
b638cddb
Commit
b638cddb
authored
4 years ago
by
marcosfsch
Browse files
Options
Downloads
Patches
Plain Diff
Removed necessity for --squash
parent
be4c698a
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+1
-1
1 addition, 1 deletion
Makefile
docker/Dockerfile
+26
-23
26 additions, 23 deletions
docker/Dockerfile
with
27 additions
and
24 deletions
Makefile
+
1
−
1
View file @
b638cddb
...
...
@@ -7,5 +7,5 @@ clean:
find
.
-name
"*.pyc"
|xargs
rm
docker-build
:
docker build
-t
opennsa
--squash
docker
docker build
-t
opennsa docker
This diff is collapsed.
Click to expand it.
docker/Dockerfile
+
26
−
23
View file @
b638cddb
...
...
@@ -10,37 +10,40 @@ ENV GIT_REPO https://github.com/NORDUnet/opennsa
ENV
USER opennsa
# --- Base image ---
# Update and install dependencies
# pip to install twistar service-identity pyasn1
# pyasn1 and crypto is needed for ssh backends
RUN
apt-get update
&&
apt-get
install
-y
git-core python3 python3-twisted-bin python3-openssl python3-psycopg2 python3-pip python3-crypto python3-dateutil
RUN
pip3
install
twistar service-identity pyasn1
# -- User setup --
RUN
adduser
--disabled-password
--gecos
'OpenNSA user'
$USER
# -- Install OpenNSA --
USER
$USER
WORKDIR
/home/$USER
RUN
echo
git clone
$GIT_REPO
RUN
git clone
$GIT_REPO
# --- Base image ---
# Update and install dependencies
# pip to install twistar service-identity pyasn1
# pyasn1 and crypto is needed for ssh backends
RUN
apt update
\
&&
apt
install
-y
\
git-core
\
python3
\
python3-twisted-bin
\
python3-openssl
\
python3-psycopg2
\
python3-pip
\
python3-crypto
\
python3-dateutil
\
&&
pip3
install
\
twistar
\
service-identity
\
pyasn1
\
# -- Instal OpenNSA --
&& echo git clone $GIT_REPO \
&& su - $USER -c "git clone $GIT_REPO" \
# -- Cleanup --
# With --squash this makes the image go from 476 to 164 mb
USER
root
RUN
apt-get remove
-y
python3-pip git
RUN
apt-get
-y
clean
RUN
apt-get
-y
autoclean
RUN
apt-get
-y
autoremove
&& apt remove -y \
git-core \
python3-pip \
&& apt autoremove -y \
&& rm -rf /var/lib/apt/lists/*
# -- Switch to OpenNSA directory --
USER
$USER
WORKDIR
/home/$USER/opennsa
...
...
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