mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

maximthomas
28.14.2018 84abc18eccc645fa3658adabd7b926a11e9e9461
Push build and push docker image in travis
2 files modified
21 ■■■■ changed files
.travis.yml 7 ●●●●● patch | view | raw | blame | history
opendj-packages/opendj-docker/Dockerfile 14 ●●●●● patch | view | raw | blame | history
.travis.yml
@@ -3,6 +3,9 @@
  include:
  - os: linux
    jdk: openjdk8
    sudo: required
    services:
      - docker
    before_deploy: 
      - git config --local user.name "Open Identity Platform Community" && git config --local user.email "open-identity-platform-opendj@googlegroups.com"
      - git checkout -f $TRAVIS_BRANCH
@@ -35,6 +38,10 @@
          - travis
    after_deploy:
      - echo 'after_deploy'
      - echo 'build and push Docker'
      - docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
      - docker build ./opendj-packages/opendj-docker/ -t $DOCKER_USERNAME/opendj
      - docker push $DOCKER_USERNAME/opendj
  - os: linux
    jdk: oraclejdk8
  - os: osx
opendj-packages/opendj-docker/Dockerfile
@@ -2,12 +2,6 @@
MAINTAINER Open Identity Platform <open-identity-platform@googlegroups.com>
WORKDIR /opt
RUN apt-get install -y wget unzip
RUN wget --quiet https://github.com/OpenIdentityPlatform/OpenDJ/releases/download/4.0.3/opendj-4.0.3.zip && unzip opendj-4.0.3.zip && rm -r opendj-4.0.3.zip
ENV PORT 1389
ENV LDAPS_PORT 1636
@@ -18,6 +12,14 @@
ENV ROOT_PASSWORD password
ENV git_version 4.1.1
WORKDIR /opt
RUN apt-get install -y wget unzip
RUN wget --quiet https://github.com/OpenIdentityPlatform/OpenDJ/releases/download/$git_version/opendj-$git_version.zip && unzip opendj-$git_version.zip && rm -r opendj-$git_version.zip
RUN /opt/opendj/setup --cli -p $PORT --ldapsPort $LDAPS_PORT --enableStartTLS --generateSelfSignedCertificate --baseDN "$BASE_DN" -h localhost --rootUserDN "$ROOT_USER_DN" --rootUserPassword $ROOT_PASSWORD --acceptLicense --no-prompt --doNotStart
CMD ["/opt/opendj/bin/start-ds", "--nodetach"]