theCalcaholic / scp-tools-gitlab

🦊 Docker Image with SAP Cloud Platform Tools optimized for GitLab Runner

Home Page:https://hub.docker.com/r/cyclenerd/scp-tools-gitlab

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SAP Cloud (SAP BTP) Tools optimized for GitLab Runner

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

πŸ’Ώ One image to rule them all

This Docker container 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

Container image based is on Ubuntu GNU/Linux.

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

Examples

MTA (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 (.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
    - 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

Google Cloud Build (cloudbuild.yml)

 - name: 'cyclenerd/scp-tools-gitlab:latest'
   entrypoint: 'java'
   args: ['--version']

Help πŸ‘

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

About

🦊 Docker Image with SAP Cloud Platform Tools optimized for GitLab Runner

https://hub.docker.com/r/cyclenerd/scp-tools-gitlab

License:GNU Affero General Public License v3.0


Languages

Language:Dockerfile 78.7%Language:Shell 21.3%