Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

pfnCI (examples tests) #842

Merged
merged 28 commits into from
Apr 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .pfnci/common.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#! /usr/bin/env sh
set -eux

if [ ${CHAINER} = stable ]; then
CHAINER=5.3.0
elif [ ${CHAINER} = latest ]; then
CHAINER=6.0.0b3
fi

if [ ${OPTIONAL_MODULES} -gt 0 ]; then
DOCKER_IMAGE=hakuyume/chainercv:chainer${CHAINER}-devel
else
DOCKER_IMAGE=hakuyume/chainercv:chainer${CHAINER}-devel-minimal
fi

fallocate -l 12G /swap
chmod 600 /swap
mkswap /swap
swapon -p 5 /swap

systemctl stop docker.service
mount -t tmpfs tmpfs /var/lib/docker/ -o size=75%
systemctl start docker.service

TEMP=$(mktemp -d)
mount -t tmpfs tmpfs ${TEMP}/ -o size=75%
Loading