Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Commit b2f5832

Browse files
authored
Merge pull request #5 from linuxserver/readme
Readme and script updates
2 parents 6943966 + 2658740 commit b2f5832

File tree

5 files changed

+22
-3
lines changed

5 files changed

+22
-3
lines changed

Jenkinsfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ pipeline {
1919
EXT_GIT_BRANCH = 'master'
2020
EXT_USER = 'docker'
2121
EXT_REPO = 'compose'
22+
CONTAINER_NAME = 'docker-compose'
2223
BUILD_VERSION_ARG = 'COMPOSE_VERSION'
2324
LS_USER = 'linuxserver'
2425
LS_REPO = 'docker-docker-compose'

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ Find us at:
3333
[![Docker Pulls](https://img.shields.io/docker/pulls/linuxserver/docker-compose.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=pulls&logo=docker)](https://hub.docker.com/r/linuxserver/docker-compose)
3434
[![Docker Stars](https://img.shields.io/docker/stars/linuxserver/docker-compose.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=stars&logo=docker)](https://hub.docker.com/r/linuxserver/docker-compose)
3535
[![Jenkins Build](https://img.shields.io/jenkins/build?labelColor=555555&logoColor=ffffff&style=for-the-badge&jobUrl=https%3A%2F%2Fci.linuxserver.io%2Fjob%2FDocker-Pipeline-Builders%2Fjob%2Fdocker-docker-compose%2Fjob%2Fmaster%2F&logo=jenkins)](https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-docker-compose/job/master/)
36-
[![LSIO CI](https://img.shields.io/badge/dynamic/yaml?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=CI&query=CI&url=https%3A%2F%2Flsio-ci.ams3.digitaloceanspaces.com%2Flinuxserver%2Fdocker-compose%2Flatest%2Fci-status.yml)](https://lsio-ci.ams3.digitaloceanspaces.com/linuxserver/docker-compose/latest/index.html)
3736

3837
[Docker-compose](https://github.com/docker/compose) is a tool for defining and running multi-container Docker applications. With Compose, you use a Compose file to configure your application's services. Then, using a single command, you create and start all the services from your configuration.
3938

@@ -53,6 +52,12 @@ The architectures supported by this image are:
5352
| arm64 | arm64v8-latest |
5453
| armhf | arm32v7-latest |
5554

55+
## Version Tags
56+
This image provides various versions that are available via tags.
57+
| Tag | Description |
58+
| :----: | --- |
59+
| latest | Ubuntu based images |
60+
| alpine | Alpine based images |
5661

5762
## Usage
5863

@@ -117,5 +122,6 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
117122

118123
## Versions
119124

125+
* **01.07.20:** - Release alpine based images at `alpine` tag.
120126
* **04.06.20:** - Bump docker-cli to 19.03.8, auto-detect python3 version.
121127
* **19.05.20:** - Initial Release.

jenkins-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ repo_vars:
1010
- EXT_GIT_BRANCH = 'master'
1111
- EXT_USER = 'docker'
1212
- EXT_REPO = 'compose'
13+
- CONTAINER_NAME = 'docker-compose'
1314
- BUILD_VERSION_ARG = 'COMPOSE_VERSION'
1415
- LS_USER = 'linuxserver'
1516
- LS_REPO = 'docker-docker-compose'

readme-vars.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ full_custom_readme: |
3939
[![Docker Pulls](https://img.shields.io/docker/pulls/linuxserver/docker-compose.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=pulls&logo=docker)](https://hub.docker.com/r/linuxserver/docker-compose)
4040
[![Docker Stars](https://img.shields.io/docker/stars/linuxserver/docker-compose.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=stars&logo=docker)](https://hub.docker.com/r/linuxserver/docker-compose)
4141
[![Jenkins Build](https://img.shields.io/jenkins/build?labelColor=555555&logoColor=ffffff&style=for-the-badge&jobUrl=https%3A%2F%2Fci.linuxserver.io%2Fjob%2FDocker-Pipeline-Builders%2Fjob%2Fdocker-docker-compose%2Fjob%2Fmaster%2F&logo=jenkins)](https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-docker-compose/job/master/)
42-
[![LSIO CI](https://img.shields.io/badge/dynamic/yaml?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=CI&query=CI&url=https%3A%2F%2Flsio-ci.ams3.digitaloceanspaces.com%2Flinuxserver%2Fdocker-compose%2Flatest%2Fci-status.yml)](https://lsio-ci.ams3.digitaloceanspaces.com/linuxserver/docker-compose/latest/index.html)
4342
4443
[Docker-compose](https://github.com/docker/compose) is a tool for defining and running multi-container Docker applications. With Compose, you use a Compose file to configure your application's services. Then, using a single command, you create and start all the services from your configuration.
4544
@@ -59,6 +58,12 @@ full_custom_readme: |
5958
| arm64 | arm64v8-latest |
6059
| armhf | arm32v7-latest |
6160
61+
## Version Tags
62+
This image provides various versions that are available via tags.
63+
| Tag | Description |
64+
| :----: | --- |
65+
| latest | Ubuntu based images |
66+
| alpine | Alpine based images |
6267
6368
## Usage
6469
@@ -123,6 +128,7 @@ full_custom_readme: |
123128
124129
## Versions
125130
131+
* **01.07.20:** - Release alpine based images at `alpine` tag.
126132
* **04.06.20:** - Bump docker-cli to 19.03.8, auto-detect python3 version.
127133
* **19.05.20:** - Initial Release.
128134

run.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
set -e
1919

20-
VERSION="latest" # can be set to a specific version tag from docker hub, such as "1.25.5"
20+
VERSION="latest" # can be set to a specific version tag from docker hub, such as "1.25.5", or "alpine"
2121
IMAGE="linuxserver/docker-compose:$VERSION"
2222

2323

@@ -62,5 +62,10 @@ if docker info --format '{{json .SecurityOptions}}' 2>/dev/null | grep -q 'name=
6262
DOCKER_RUN_OPTIONS="$DOCKER_RUN_OPTIONS --userns=host"
6363
fi
6464

65+
# Detect SELinux and add --privileged if necessary
66+
if docker info --format '{{json .SecurityOptions}}' 2>/dev/null | grep -q 'name=selinux'; then
67+
DOCKER_RUN_OPTIONS="$DOCKER_RUN_OPTIONS --privileged"
68+
fi
69+
6570
# shellcheck disable=SC2086
6671
exec docker run --rm $DOCKER_RUN_OPTIONS $DOCKER_ADDR $COMPOSE_OPTIONS $VOLUMES -w "$(pwd)" $IMAGE "$@"

0 commit comments

Comments
 (0)