-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
trying to add docker/deb to generate debian package
- Loading branch information
Showing
9 changed files
with
72 additions
and
2 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
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
set(DOCKER_ORG_NAME "danseins") | ||
|
||
add_subdirectory(srpm) | ||
add_subdirectory(deb) |
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,30 @@ | ||
# docker | ||
|
||
configure_file(prepare/Dockerfile prepare/Dockerfile) | ||
configure_file(prepare/run.in prepare/run) | ||
|
||
configure_file(build/Dockerfile.in build/Dockerfile) | ||
configure_file(build/run.in build/run) | ||
|
||
configure_file(test/Dockerfile.in test/Dockerfile) | ||
configure_file(test/run.in test/run) | ||
|
||
add_custom_target( | ||
build-deb-deps | ||
COMMAND bash run | ||
WORKING_DIRECTORY prepare | ||
) | ||
|
||
# output under ..../build/DEB | ||
add_custom_target( | ||
build-deb | ||
COMMAND bash run | ||
WORKING_DIRECTORY build | ||
) | ||
add_dependencies(build-deb build-deb-deps) | ||
|
||
add_custom_target( | ||
test-deb | ||
COMMAND bash run | ||
WORKING_DIRECTORY test | ||
) |
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,13 @@ | ||
FROM ${DOCKER_ORG_NAME}/${PKG_NAME}-deb-deps | ||
|
||
MAINTAINER "Jiao Lin <jiao.lin@gmail.com>" | ||
|
||
RUN mkdir /work | ||
WORKDIR /work | ||
RUN git clone ${GITHUB_URL} src | ||
RUN mkdir build | ||
WORKDIR /work/build | ||
RUN cmake ../src -DCMAKE_INSTALL_PREFIX=/opt/danse -DDEPLOYMENT_PREFIX=/opt/danse | ||
RUN make package | ||
RUN mkdir DEB | ||
RUN mv *.deb DEB/ |
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,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
IMG=${DOCKER_ORG_NAME}/${PKG_NAME}-deb | ||
docker build -t $IMG --no-cache . | ||
docker run -v $PWD:/OUTPUT $IMG mv /work/build/DEB /OUTPUT |
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,8 @@ | ||
FROM ubuntu:14.04 | ||
|
||
MAINTAINER "Jiao Lin <jiao.lin@gmail.com>" | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y git build-essential | ||
RUN apt-get install -y cmake | ||
RUN apt-get install -y python python-dev |
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,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
docker build -t ${DOCKER_ORG_NAME}/${PKG_NAME}-deb-deps . |
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,5 @@ | ||
FROM ${DOCKER_ORG_NAME}/${PKG_NAME}-srpm-deps | ||
|
||
MAINTAINER "Jiao Lin <jiao.lin@gmail.com>" | ||
|
||
RUN dpkg -i ${GITHUB_URL}/releases/download/v${VERSION}/${PKG_NAME}-${VERSION}-${CPACK_PACKAGE_RELEASE}.x86_64.deb |
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,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
IMG_NAME=${DOCKER_ORG_NAME}/${PKG_NAME}-srpm-test | ||
docker build -t $IMG_NAME --no-cache . \ | ||
&& docker run -t $IMG_NAME find /opt/danse |