Skip to content

Commit

Permalink
Merge pull request #2085 from megies/deb_docker
Browse files Browse the repository at this point in the history
docker: Some changes for Deb packaging
  • Loading branch information
megies committed Mar 16, 2018
2 parents 89cc08b + 578eebe commit e68351d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
10 changes: 10 additions & 0 deletions misc/docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,16 @@ $ docker login # docker hub user needs write access to "obspy/base-images" of o
$ docker push obspy/base-images:${DISTRO_FULL}
```

To run ``armhf`` docker images/containers built this way on non-ARM Linux machines,
it seems that it's necessary to install ``qemu``, ``qemu-user-static`` and
``qemu-system-arm`` packages (Debian/Ubuntu).
Furthermore, qemu multiarch support has to be registered with docker (see
https://hub.docker.com/r/multiarch/qemu-user-static/):

```bash
$ docker run --rm --privileged multiarch/qemu-user-static:register --reset
```

### Setting up `docker-testbot` to automatically test PRs and branches and send commit statuses

##### Install docker
Expand Down
3 changes: 0 additions & 3 deletions misc/docker/obspy_images
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ obspy/base-images:debian_9_stretch_armhf
obspy/base-images:debian_9_stretch_32bit
obspy/base-images:ubuntu_14_04_trusty_32bit
obspy/base-images:ubuntu_16_04_xenial_32bit
obspy/base-images:ubuntu_17_04_zesty_32bit
obspy/base-images:ubuntu_17_10_artful_32bit
obspy:centos_7
obspy:debian_7_wheezy
Expand All @@ -32,8 +31,6 @@ obspy:ubuntu_14_04_trusty
obspy:ubuntu_14_04_trusty_32bit
obspy:ubuntu_16_04_xenial
obspy:ubuntu_16_04_xenial_32bit
obspy:ubuntu_17_04_zesty
obspy:ubuntu_17_04_zesty_32bit
obspy:ubuntu_17_10_artful
obspy:ubuntu_17_10_artful_32bit
opensuse:42.2
Expand Down
10 changes: 5 additions & 5 deletions misc/docker/package_debs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ LOG_DIR_ROOT=logs/package_debs
LOG_DIR_BASE=$LOG_DIR_ROOT/$DATETIME
mkdir -p $LOG_DIR_BASE

DOCKER_IMAGES="debian_7_wheezy debian_7_wheezy_32bit debian_7_wheezy_armhf debian_8_jessie debian_8_jessie_32bit debian_8_jessie_armhf debian_9_stretch debian_9_stretch_32bit debian_9_stretch_armhf ubuntu_14_04_trusty ubuntu_14_04_trusty_32bit ubuntu_16_04_xenial ubuntu_16_04_xenial_32bit ubuntu_17_04_zesty ubuntu_17_04_zesty_32bit ubuntu_17_10_artful ubuntu_17_10_artful_32bit"
DOCKER_IMAGES="debian_7_wheezy debian_7_wheezy_32bit debian_7_wheezy_armhf debian_8_jessie debian_8_jessie_32bit debian_8_jessie_armhf debian_9_stretch debian_9_stretch_32bit debian_9_stretch_armhf ubuntu_14_04_trusty ubuntu_14_04_trusty_32bit ubuntu_16_04_xenial ubuntu_16_04_xenial_32bit ubuntu_17_10_artful ubuntu_17_10_artful_32bit"

# Parse the target for deb package building (e.g. "-tmegies:deb_1.0.2")
SET_COMMIT_STATUS=false
Expand Down Expand Up @@ -43,21 +43,21 @@ DOCKER=`which docker.io || which docker`
rm -rf $TEMP_PATH
mkdir -p $TEMP_PATH

# Deb packaging is always performed using the deb build script from misc/debian
# from the current state of the local repository.
cp -a $OBSPY_PATH/misc/debian/deb__build_debs.sh $TEMP_PATH/
# but we need to find out the SHA of the git target (e.g. if a branch name was
# specified..)
git clone git://github.com/$REPO/obspy $TEMP_PATH/obspy
cd $TEMP_PATH/obspy
git checkout $GITTARGET
SHA=`git log -1 --pretty=format:'%H'`
cd $CURDIR
# Deb packaging is always performed using the deb build script from misc/debian
# of the target branch
cp -a $TEMP_PATH/obspy/misc/debian/deb__build_debs.sh $TEMP_PATH/
rm -rf $TEMP_PATH/obspy

cd $CURDIR

# Copy the install script.
# Copy the install script. Use current version (on master)
cp scripts/package_debs.sh $TEMP_PATH/package_debs.sh


Expand Down

0 comments on commit e68351d

Please sign in to comment.