Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM openjdk:8-alpine

ARG a4c_version=2.0.0

RUN apk add --update bash openssl curl python && \
mkdir -p /var/a4c && \
cd /var/a4c && \
addgroup a4c && \
adduser -D -s /bin/bash -h /var/a4c -g a4c -G a4c a4c && \
umask 0022 && \
curl -k -O https://fastconnect.org/maven/service/local/repositories/opensource/content/alien4cloud/alien4cloud-dist/${a4c_version}/alien4cloud-dist-${a4c_version}-dist.tar.gz && \
tar xvf alien4cloud-dist-${a4c_version}-dist.tar.gz && \
rm alien4cloud-dist-${a4c_version}-dist.tar.gz && \
chown -R a4c:a4c /var/a4c && \
rm -rf /var/cache/apk/*

EXPOSE 8088

USER a4c

ENTRYPOINT cd /var/a4c/alien4cloud && ./alien4cloud.sh

ARG BUILD_DATE
ARG VCS_REF

LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-url="https://github.com/alien4cloud/docker-alien4cloud.git" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.schema-version="1.0.0-rc1"
26 changes: 25 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,26 @@
# docker-alien4cloud
Alien4Cloud Docker Image
[Alien4Cloud](https://github.com/alien4cloud/alien4cloud) docker image.

[![](https://images.microbadger.com/badges/image/alien4cloud/alien4cloud.svg)](https://microbadger.com/images/alien4cloud/alien4cloud "Get your own image badge on microbadger.com") [![](https://images.microbadger.com/badges/version/alien4cloud/alien4cloud.svg)](https://microbadger.com/images/alien4cloud/alien4cloud "Get your own version badge on microbadger.com")

See https://alien4cloud.github.io for details on how ALIEN for Cloud
(Application LIfecycle ENabler for cloud) can help you manage your application deployments.

Run this command to start Alien4Cloud :
```
docker run -d --name a4c -p 8088:8088 alien4cloud/alien4cloud
```

You can then access the UI at http://_IPAddress_:8088 and login as _admin_/_admin_.

**Note**: if you are using a HTTP proxy that needs to be known by Alien4Cloud,
for example if you need to import archives in Alien4cloud from an external web site,
you can define this proxy in Alien4Cloud using the environment variable **JAVA_EXT_OPTIONS**.

So the docker command to run would be :
```
docker run -d --name a4c \
-p 8088:8088 \
-e JAVA_EXT_OPTIONS="-Dhttp.proxyHost=10.1.2.3 -Dhttp.proxyPort=8080 -Dhttp.nonProxyHosts=\"127.0.0.1|10.11.12.13|10.20.*\"" \
alien4cloud/alien4cloud
```
8 changes: 8 additions & 0 deletions hooks/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

# $IMAGE_NAME var is injected into the build so the tag is correct.

echo "Build hook running"
docker build --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
--build-arg VCS_REF=`git rev-parse --short HEAD` \
-t $IMAGE_NAME .