-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
27 lines (24 loc) · 1.45 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
version: '3.8'
# mkdir -p ${HOME}/jdk8u && DISTRO=centos JAVA_VERSION=8 docker-compose -f docker-compose.yml run --rm jdk
# mkdir -p ${HOME}/jdk11u && DISTRO=centos JAVA_VERSION=11 docker-compose -f docker-compose.yml run --rm jdk
# mkdir -p ${HOME}/jdk17u && DISTRO=centos JAVA_VERSION=17 docker-compose -f docker-compose.yml run --rm jdk
# mkdir -p ${HOME}/jdk21u && DISTRO=centos JAVA_VERSION=21 docker-compose -f docker-compose.yml run --rm jdk
# mkdir -p ${HOME}/jdk11u && DISTRO=alpine JAVA_VERSION=11 docker-compose -f docker-compose.yml run --rm jdk
# mkdir -p ${HOME}/jdk17u && DISTRO=alpine JAVA_VERSION=17 docker-compose -f docker-compose.yml run --rm jdk
# mkdir -p ${HOME}/jdk21u && DISTRO=alpine JAVA_VERSION=21 docker-compose -f docker-compose.yml run --rm jdk
services:
jdk:
image: ${DOCKER_HUB_USER_AND_REPOSITORY}:${DISTRO}${JDK}${JAVA_VERSION}u
hostname: ${DISTRO}${JDK}${JAVA_VERSION}u
container_name: ${DISTRO}${JDK}${JAVA_VERSION}u
user: ${DUMMY_UID}:${DUMMY_UID}
working_dir: /${DUMMY_USER}/
command: /${DUMMY_USER}/${COMPOSE_PROJECT_NAME}/entrypoint${JAVA_VERSION}.bash ${JAVA_VERSION}
env_file:
- .env
volumes:
- ${HOME}/${JDK}${JAVA_VERSION}u/:/${DUMMY_USER}/${JDK}${JAVA_VERSION}u/:rw
- ${HOME}/${JTREG}/:/${DUMMY_USER}/${JTREG}/:rw
- ${HOME}/${GTEST}/:/${DUMMY_USER}/${GTEST}/:rw
- ./:/${DUMMY_USER}/${COMPOSE_PROJECT_NAME}:ro
- ${HOME}/.github_token:/${DUMMY_USER}/.github_token:ro