Skip to content
🦊 Docker Image with SAP Cloud Platform Tools optimized for GitLab Runner
Branch: master
Clone or download
Latest commit 5aebbb5 May 22, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Dockerfile envsubst May 22, 2019
LICENSE Initial commit May 7, 2019
README.md envsubst May 22, 2019

README.md

SAP Cloud Platform Tools optimized for GitLab Runner

One image to rule them all

Software

This Docker image based is on Ubuntu GNU/Linux.

The following software is included:

HOWTO

Execute...

  • Java: java
  • Cloud Foundry CLI: cf
  • SAP Cloud Platform Neo Environment SDK: neo.sh
  • SAP Multi-Target Application Archive Builder: java -jar $MTA_BUILDER_HOME/mta_archive_builder.jar
  • Node.js: node

Example

mta.yml:

_schema-version: '2.0'
ID: de.nkn-it.demo
version: 1.0.0

modules:
  - name: demo
    type: html5
    path: webapp
    parameters:
      version: ${VERSION}
    build-parameters:
      builder: zip
      ignore: ["*.git*"]

.gitlab-ci.yml:

image: cyclenerd/scp-tools-gitlab:latest

stages:
  - deploy

build-and-deploy:
  stage: deploy
  script:
    - export VERSION=$(git rev-parse --short HEAD)
    - envsubst < mta.yaml > mta.yaml
    - java -jar $MTA_BUILDER_HOME/mta_archive_builder.jar --mtar deploy.mtar --build-target=NEO build
    - neo.sh deploy-mta -a "$SCP_ACCOUNT" -u "$SCP_USER" -p "$SCP_PASSWORD" -h hana.ondemand.com --source deploy.mtar --synchronous
  only:
    - master

Help πŸ‘

If you have found a bug (English is not my mother tongue) or have any improvements, send me a pull request.

You can’t perform that action at this time.