Skip to content

Commit

Permalink
add docker build files for Arch Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoK committed Nov 15, 2019
1 parent 086aa7a commit ba6de85
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 0 deletions.
30 changes: 30 additions & 0 deletions docker/Dockerfile.arch
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
FROM archlinux/base

ARG java_version=8
ENV JAVA_VERSION $java_version

# install dependencies
# use openSSL 1.0.x for now, for highest compatibility
RUN pacman -Sy --noconfirm --needed \
apr \
autoconf \
automake \
bzip2 \
cmake \
git \
glibc \
gcc \
gnupg \
go \
gzip \
jdk${JAVA_VERSION}-openjdk \
openssl-1.0 \
libtool \
lsb-release \
make \
ninja \
perl \
tar \
unzip \
wget \
which
6 changes: 6 additions & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ cd /path/to/netty-tcnative/
cd /path/to/netty-tcnative/
```

## Arch Linux with java 8

```
docker-compose -f docker/docker-compose.arch.yaml -f docker/docker-compose.arch-18.yaml run build
```

## centos 6 with java 8

```
Expand Down
15 changes: 15 additions & 0 deletions docker/docker-compose.arch-18.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: "3"

services:

runtime-setup:
image: netty-tcnative-arch:arch-1.8
build:
args:
java_version : "8"

build:
image: netty-tcnative-arch:arch-1.8

shell:
image: netty-tcnative-arch:arch-1.8
36 changes: 36 additions & 0 deletions docker/docker-compose.arch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
version: "3"

services:

runtime-setup:
image: netty-tcnative-arch:default
build:
context: .
dockerfile: Dockerfile.arch

common: &common
image: netty-tcnative-arch:default
depends_on: [runtime-setup]
volumes:
- ~/.ssh:/root/.ssh
- ~/.gnupg:/root/.gnupg
- ..:/code
working_dir: /code

build:
<<: *common
command: /bin/bash -cl "./mvnw clean package"

shell:
<<: *common
environment:
- SANOTYPE_USER
- SANOTYPE_PASSWORD
volumes:
- ~/.ssh:/root/.ssh
- ~/.gnupg:/root/.gnupg
- ~/.m2:/root/.m2
- ~/.gitconfig:/root/.gitconfig
- ~/.gitignore:/root/.gitignore
- ..:/code
entrypoint: /bin/bash

0 comments on commit ba6de85

Please sign in to comment.