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
fd69584f
Unverified
Commit
fd69584f
authored
3 years ago
by
JohannesGarm
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #21 from marcosfsch/no-squash
Removed necessity for --squash
parents
7475dfc8
b638cddb
No related branches found
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 @
fd69584f
...
@@ -7,5 +7,5 @@ clean:
...
@@ -7,5 +7,5 @@ clean:
find
.
-name
"*.pyc"
|xargs
rm
find
.
-name
"*.pyc"
|xargs
rm
docker-build
:
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 @
fd69584f
...
@@ -10,37 +10,40 @@ ENV GIT_REPO https://github.com/NORDUnet/opennsa
...
@@ -10,37 +10,40 @@ ENV GIT_REPO https://github.com/NORDUnet/opennsa
ENV
USER 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 --
# -- User setup --
RUN
adduser
--disabled-password
--gecos
'OpenNSA user'
$USER
RUN
adduser
--disabled-password
--gecos
'OpenNSA user'
$USER
# -- Install OpenNSA --
# --- Base image ---
USER
$USER
# Update and install dependencies
WORKDIR
/home/$USER
# pip to install twistar service-identity pyasn1
# pyasn1 and crypto is needed for ssh backends
RUN
echo
git clone
$GIT_REPO
RUN
apt update
\
RUN
git clone
$GIT_REPO
&&
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 --
# -- Cleanup --
# With --squash this makes the image go from 476 to 164 mb
&& apt remove -y \
USER
root
git-core \
RUN
apt-get remove
-y
python3-pip git
python3-pip \
RUN
apt-get
-y
clean
&& apt autoremove -y \
RUN
apt-get
-y
autoclean
&& rm -rf /var/lib/apt/lists/*
RUN
apt-get
-y
autoremove
# -- Switch to OpenNSA directory --
# -- Switch to OpenNSA directory --
USER
$USER
USER
$USER
WORKDIR
/home/$USER/opennsa
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