-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docker deployment configuration and fix up standby configuration.
- Loading branch information
Showing
7 changed files
with
120 additions
and
23 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 |
---|---|---|
|
@@ -14,6 +14,8 @@ | |
* limitations under the License. | ||
*/ | ||
|
||
val useStandby: String by project | ||
|
||
plugins { | ||
java | ||
} | ||
|
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
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 @@ | ||
ARG REPO_NAME=docker.io/ | ||
ARG IMAGE_NAME=azul/zulu-openjdk-debian | ||
ARG IMAGE_TAG=17 | ||
FROM ${REPO_NAME}${IMAGE_NAME}:${IMAGE_TAG} | ||
|
||
SHELL [ "/bin/bash", "-o", "pipefail", "-c" ] | ||
|
||
COPY --chmod=755 setup-docker.sh /root/dockerbuild/setup-docker.sh | ||
COPY --chmod=755 setup-docker.sh /root/aeron/ | ||
RUN /root/dockerbuild/setup-docker.sh && rm --recursive --force "/root/dockerbuild" | ||
|
||
WORKDIR /root/jar/ | ||
COPY --chmod=755 /build/libs/standby-uber.jar /root/jar/standby-uber.jar | ||
COPY --chmod=755 entrypoint.sh /root/jar/entrypoint.sh | ||
ENTRYPOINT ["/root/jar/entrypoint.sh"] |
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,19 @@ | ||
# Standby | ||
|
||
Aeron Cluster Standby is a premium feature. | ||
In order to the Standby quickstart you must have access to the binaries Aeron Cluster Standby provided by Adaptive. | ||
If you don't have access to these this feature interests you please contact adaptive via http://aeron.io. | ||
|
||
The Standby features of the quickstart a disabled by default. | ||
They need to be enabled in both the build and with any docker compose steps. | ||
E.g. for builds within the project root. | ||
|
||
```shell | ||
> ./gradlew -Pstandby=true | ||
``` | ||
|
||
When running the docker steps within the `<project root>/docker` directory | ||
```shell | ||
> docker compose --profile standby build --no-cache | ||
> docker compose --profile standby up | ||
``` |
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,23 @@ | ||
#!/bin/bash | ||
|
||
echo "debconf debconf/frontend select noninteractive" | debconf-set-selections | ||
|
||
apt-get update \ | ||
--quiet \ | ||
--assume-yes | ||
|
||
apt-get install \ | ||
--quiet \ | ||
--assume-yes \ | ||
--no-install-recommends \ | ||
bash \ | ||
procps \ | ||
less \ | ||
sysstat \ | ||
wget | ||
|
||
mkdir /root/aeron | ||
mkdir /root/jar | ||
|
||
wget https://repo1.maven.org/maven2/io/aeron/aeron-all/1.42.0/aeron-all-1.42.0.jar -P /root/aeron/ | ||
# TODO: Copy cluster standby jars in place as well... |
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