mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 12:20:51 +08:00
Docker infrastructure (#4445)
* Basic docker compose infrastructure * Fix port mapping problem * Move files into test folder Co-authored-by: Lars Hvam <larshp@hotmail.com>
This commit is contained in:
parent
c48c030a0c
commit
c89cff6b89
|
@ -6,7 +6,11 @@
|
||||||
"merge.ci": "cp zabapgit.abap ci/zabapgit_standalone.prog.abap && cd ci && abaplint && cd ..",
|
"merge.ci": "cp zabapgit.abap ci/zabapgit_standalone.prog.abap && cd ci && abaplint && cd ..",
|
||||||
"unit": "rm -rf output && abap_transpile && echo RUNNING && node output/index.js",
|
"unit": "rm -rf output && abap_transpile && echo RUNNING && node output/index.js",
|
||||||
"abaplint": "abaplint",
|
"abaplint": "abaplint",
|
||||||
"eslint": "eslint src"
|
"eslint": "eslint src",
|
||||||
|
"docker-build": "docker-compose -f test/docker-compose.yml build",
|
||||||
|
"docker-up": "docker-compose -f test/docker-compose.yml up",
|
||||||
|
"docker-unit": "docker-compose -f test/docker-compose.yml run --workdir=\"/home/node/abapGit\" abapgit npm run-script unit",
|
||||||
|
"docker-down": "docker-compose -f test/docker-compose.yml down"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
8
test/Dockerfile
Normal file
8
test/Dockerfile
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
FROM node
|
||||||
|
|
||||||
|
ARG TINI_VERSION=v0.19.0
|
||||||
|
|
||||||
|
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /usr/local/bin/tini
|
||||||
|
RUN chmod a+x /usr/local/bin/tini
|
||||||
|
|
||||||
|
ENTRYPOINT ["/usr/local/bin/tini", "--"]
|
21
test/docker-compose.yml
Normal file
21
test/docker-compose.yml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
version: '3.4'
|
||||||
|
|
||||||
|
services:
|
||||||
|
abapgit:
|
||||||
|
image: abapgit
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: ./Dockerfile
|
||||||
|
environment:
|
||||||
|
NODE_ENV: development
|
||||||
|
networks:
|
||||||
|
default:
|
||||||
|
volumes:
|
||||||
|
- ..:/home/node/abapGit
|
||||||
|
# links:
|
||||||
|
# - httpEndpoint:httpbin.com
|
||||||
|
# depends_on:
|
||||||
|
# - httpEndpoint
|
||||||
|
# httpEndpoint:
|
||||||
|
# image: hashicorp/http-echo
|
||||||
|
# command: -text="Hello World" -listen=:80
|
Loading…
Reference in New Issue
Block a user