-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:markqvist/NomadNet
- Loading branch information
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
FROM python:alpine | ||
LABEL authors="Petr Blaha [email protected]" | ||
USER root | ||
RUN apk update | ||
RUN apk add build-base libffi-dev cargo pkgconfig linux-headers py3-virtualenv | ||
|
||
RUN addgroup -S myuser && adduser -S -G myuser myuser | ||
USER myuser | ||
WORKDIR /home/myuser | ||
|
||
RUN pip install --upgrade pip | ||
RUN pip install setuptools-rust pyopenssl cryptography | ||
|
||
|
||
ENV PATH="/home/myuser/.local/bin:${PATH}" | ||
|
||
################### BEGIN NomadNet ########################################### | ||
|
||
COPY --chown=myuser:myuser requirements.txt requirements.txt | ||
|
||
RUN pip install --user -r requirements.txt | ||
|
||
|
||
COPY --chown=myuser:myuser . . | ||
|
||
#Python create virtual environment | ||
RUN virtualenv /home/myuser/NomadNet/venv | ||
RUN source /home/myuser/NomadNet/venv/bin/activate | ||
|
||
RUN make all | ||
|
||
################### END NomadNet ########################################### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Run docker command one by one(all four), it will build NomadNet artifact and copy to dist directory. | ||
# No need to build locally and install dependencies | ||
docker build -t nomadnetdockerimage -f Dockerfile.build . | ||
docker run -d -it --name nomadnetdockercontainer nomadnetdockerimage /bin/sh | ||
docker cp nomadnetdockercontainer:/home/myuser/dist . | ||
docker rm -f nomadnetdockercontainer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
compiler==0.2.0 | ||
configobj==5.0.8 | ||
lxmf==0.3.2 | ||
rns==0.5.7 | ||
setuptools==68.0.0 | ||
urwid==2.1.2 |