Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add as much multiarch as Cassandra's repos can handle #115

Merged
merged 1 commit into from
Aug 24, 2017
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
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ services: docker

env:
- VERSION=3.11
- VERSION=3.11 ARCH=i386
- VERSION=3.0
- VERSION=3.0 ARCH=i386
- VERSION=2.2
- VERSION=2.2 ARCH=i386
- VERSION=2.1
- VERSION=2.1 ARCH=i386

install:
- git clone https://github.com/docker-library/official-images.git ~/official-images
Expand All @@ -14,6 +18,12 @@ before_script:
- env | sort
- cd "$VERSION"
- image="cassandra:$VERSION"
- |
if [ -n "$ARCH" ]; then
from="$(awk '$1 == toupper("FROM") { print $2 }' Dockerfile)"
docker pull "$ARCH/$from"
docker tag "$ARCH/$from" "$from"
fi

script:
- travis_retry docker build -t "$image" .
Expand Down
5 changes: 5 additions & 0 deletions generate-stackbrew-library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,14 @@ for version in "${versions[@]}"; do
fi
versionAliases+=( ${aliases[$version]:-} )

# $ wget -qO- 'https://dl.bintray.com/apache/cassandra/dists/311x/Release' | grep '^Architectures:'
# Architectures: i386 amd64
arches='amd64 i386'

echo
cat <<-EOE
Tags: $(join ', ' "${versionAliases[@]}")
Architectures: $(join ', ' $arches)
GitCommit: $commit
Directory: $version
EOE
Expand Down
1 change: 1 addition & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ for version in "${versions[@]}"; do
sed 's/%%CASSANDRA_DIST%%/'$dist'/g; s/%%CASSANDRA_VERSION%%/'$fullVersion'/g' Dockerfile.template > "$version/Dockerfile"
)

travisEnv='\n - VERSION='"$version ARCH=i386$travisEnv"
travisEnv='\n - VERSION='"$version$travisEnv"
done

Expand Down