File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77* .py [cod ]
88
99# ## added with RM's Makefile
10- ** / deb_dist /**
10+ deb_dist /**
1111localutils /**
1212agent /f5 /bigip /pycontrol /wsdl /**
1313
Original file line number Diff line number Diff line change 1+ # Dockerfile
2+ FROM ubuntu:trusty
3+
4+ RUN apt-get update && apt-get install -y \
5+ python-stdeb \
6+ fakeroot \
7+ python-all
8+
9+ COPY ./build-debs.sh /
10+
Original file line number Diff line number Diff line change 1+ #! /bin/bash -ex
2+
3+ SRC_DIR=$1
4+ pushd $SRC_DIR
5+ PKG_VERSION=$( python -c " import f5; print(f5.__version__)" )
6+
7+ PKG_NAME=" f5-sdk"
8+
9+ TMP_DIST=" /var/deb_dist"
10+ OS_VERSION=" 1404"
11+ DIST_DIR=" f5-sdk-dist/deb_dist"
12+
13+ echo " Building ${PKG_NAME} debian packages..."
14+
15+ cp -R " ${SRC_DIR} /${DIST_DIR} /stdeb.cfg" .
16+ cp -R " ${SRC_DIR} /${DIST_DIR} " ${TMP_DIST}
17+
18+ python setup.py --command-packages=stdeb.command sdist_dsc --dist-dir=${TMP_DIST}
19+ pushd " ${TMP_DIST} /${PKG_NAME} -${PKG_VERSION} "
20+ dpkg-buildpackage -rfakeroot -uc -us
21+ popd ; popd
22+
23+ pkg=" python-${PKG_NAME} _${PKG_VERSION} -1_all.deb"
24+ cp " ${TMP_DIST} /${pkg} " " ${SRC_DIR} /${DIST_DIR} /${pkg%% _all.deb} _${OS_VERSION} _all.deb"
Original file line number Diff line number Diff line change 1+ [DEFAULT]
2+ Depends:
3+ python-f5-icontrol-rest (>=1.0.7)
Original file line number Diff line number Diff line change 1919
2020docker build -t ${BUILD_CONTAINER} ${DIST_DIR} /Docker/${OS_TYPE} /${OS_VERSION}
2121docker run --privileged --rm -v $( pwd) :${WORKING_DIR} ${BUILD_CONTAINER} /bin/bash /build-${PKG_TYPE} .sh " ${WORKING_DIR} "
22- sudo chown -R travis:travis ${DIST_DIR}
2322
2423exit 0
You can’t perform that action at this time.
0 commit comments