Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Fokko committed Jul 23, 2024
1 parent 09a870d commit ba2206a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 268 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ on:
branches: [ main ]
pull_request:
branches: [ main ]
paths:
- 'share/docker/*'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
251 changes: 0 additions & 251 deletions Dockerfile

This file was deleted.

6 changes: 4 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,11 @@ do
;;

docker-test)
export DOCKER_DEFAULT_PLATFORM="$(docker info --format "{{.OSType}}/{{.Architecture}}")"
if [ -z "$BUILDPLATFORM" ]; then
export BUILDPLATFORM=$(docker info --format "{{.OSType}}/{{.Architecture}}")
fi
tar -cf- share/docker/Dockerfile $DOCKER_EXTRA_CONTEXT |
DOCKER_BUILDKIT=1 docker build -t avro-test --build-arg BUILDPLATFORM="${DOCKER_DEFAULT_PLATFORM}" -f share/docker/Dockerfile -
DOCKER_BUILDKIT=1 docker build -t avro-test --build-arg BUILDPLATFORM="${BUILDPLATFORM}" -f share/docker/Dockerfile -
docker run --rm \
--volume "${PWD}:/avro${DOCKER_MOUNT_FLAG}" \
--volume "${PWD}/share/docker/m2/:/root/.m2/" \
Expand Down
22 changes: 7 additions & 15 deletions share/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -95,20 +95,12 @@ RUN apt-get -qqy install --no-install-recommends libzstd-dev \
php-dev

# Required for Dotnet
#RUN ARCH="$(dpkg --print-architecture)"
#ENV LIBSSL_DEB="libssl1.1_1.1.1f-1ubuntu2_$ARCH.deb"
#RUN if [ "$ARCH" == "amd64" ] || [ "$ARCH" == "i386" ]; then \
# LIBSSL_URL="https://security.ubuntu.com/ubuntu/pool/main/o/openssl/$LIBSSL_DEB" \
# else \
# LIBSSL_URL="https://ports.ubuntu.com/ubuntu-ports/pool/main/o/openssl/$LIBSSL_DEB" \
# fi \
# wget "$LIBSSL_URL" \
# dpkg -i "$LIBSSL_DEB" \
# rm -f "$LIBSSL_DEB"
RUN wget -q https://www.openssl.org/source/openssl-1.1.1q.tar.gz && \
tar -xzf openssl-1.1.1q.tar.gz && \
cd openssl-1.1.1q && \
./config && make install
RUN export ARCH="$(dpkg --print-architecture)"; \
export LIBSSL_DEB="libssl1.1_1.1.1f-1ubuntu2.22_$ARCH.deb"; \
wget -q "http://security.ubuntu.com/ubuntu/pool/main/o/openssl/$LIBSSL_DEB" || \
wget -q "http://ports.ubuntu.com/ubuntu-ports/pool/main/o/openssl/$LIBSSL_DEB"; \
dpkg -i "$LIBSSL_DEB"; \
rm "$LIBSSL_DEB"

# Install a maven release -------------------------------------------
# Inspired from https://github.com/apache/accumulo-docker/blob/bbb9892e165d40fb35fa19f38929effc5d0c709b/Dockerfile#L30
Expand Down Expand Up @@ -143,7 +135,7 @@ ENV PATH="/opt/maven/bin:${PATH}"
# The node deprecation warnings cause a 20 second sleep.
# But mom, I'm not even tired!
RUN curl -sSL https://deb.nodesource.com/setup_14.x \
| sed 's/sleep 20/echo "But mom!"/' \
| sed 's/sleep/echo "But mom!"/' \
| bash \
&& apt-get -qqy install nodejs \
&& apt-get -qqy clean \
Expand Down

0 comments on commit ba2206a

Please sign in to comment.