-
-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add docker build files for Arch Linux
- Loading branch information
Showing
4 changed files
with
87 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |