-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c7e0282
commit 672abad
Showing
1 changed file
with
32 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 debian:latest | ||
|
||
# install dependencies | ||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
git \ | ||
make gcc libelf-dev build-essential \ | ||
python3 \ | ||
python3-pip \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ | ||
&& git config --global core.preloadindex true \ | ||
&& git config --global gc.auto 256 | ||
|
||
RUN mkdir /work | ||
WORKDIR /work | ||
|
||
# install kpatch-build | ||
RUN git clone https://github.com/dynup/kpatch | ||
WORKDIR /work/kpatch | ||
RUN make -j`getconf _NPROCESSORS_CONF` build-kpatch-build | ||
RUN make install-kpatch-build | ||
RUN kpatch-build -h | ||
|
||
WORKDIR /work | ||
RUN git clone https://github.com/gentoo/elivepatch-server | ||
WORKDIR /work/elivepatch-server | ||
RUN pip3 install -r requirements.txt | ||
RUN mv elivepatch_server/elivepatch_server.py elivepatch_server/elivepatch_server | ||
|
||
# run a CMD to show git is installed | ||
CMD PYTHONPATH="$PYTHONPATH:/work/elivepatch_server" python3 /work/elivepatch-server/elivepatch_server/elivepatch_server -d true |