/scp-tools-gitlab

🦊 Docker Image with SAP Cloud Platform Tools (SAP Business Technology Platform) optimized for GitLab Runner

Primary LanguageDockerfileGNU Affero General Public License v3.0AGPL-3.0

SAP Cloud Platform (SAP BTP) Tools optimized for GitLab Runner

Bagde: SAP Badge: GitLab Bagde: Docker Bagde: Docker image Bagde: Docker pulls Bagde: GitHub

💿 One image to rule them all

This Docker Image is heavily used within the Otto Group. More details in the SAP Blog post: https://blogs.sap.com/2019/11/08/otto-group-its-journey-to-sap-cloud-platform/

Software

This Docker image based is on Ubuntu GNU/Linux 20.04 LTS (ubuntu:20.04).

The following software is included:

HOWTO

Docker pull command:

docker pull cyclenerd/scp-tools-gitlab:latest

Execute...

  • Java: java
  • Python 3: python3
  • Cloud Foundry CLI: cf
  • SAP Cloud Platform Neo Environment SDK: neo.sh
  • Node.js: node
  • SAP Cloud MTA Build tool: mbt
  • MkDocs: mkdocs

Example run command:

docker run cyclenerd/scp-tools-gitlab:latest java --version

CI/CD 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

SAP Cloud MTA Build Tool:

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
    - mbt build --platform=neo --target=mta_archives --mtar=deploy.mtar
    - neo.sh deploy-mta -a "$SCP_ACCOUNT" -u "$SCP_USER" -p "$SCP_PASSWORD" -h hana.ondemand.com --source mta_archives/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.