You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
722 B

  1. # -*- mode: bash -*-
  2. GOGOCARTOJS_CODE="$SERVICE_DATASTORE/opt/apps/gogocartojs"
  3. GOGOCARTOJS_DOCKER_IMAGE=docker.0k.io/gogocartojs:1.0.0
  4. gogocartojs:build() {
  5. docker pull "$GOGOCARTOJS_DOCKER_IMAGE" || return 1
  6. container_id=$(docker run -d --entrypoint true "$GOGOCARTOJS_DOCKER_IMAGE") || return 1
  7. mkdir -p "$GOGOCARTOJS_CODE" &&
  8. docker cp "$container_id":/opt/apps/gogocartojs/build "$GOGOCARTOJS_CODE"/ &&
  9. docker cp "$container_id":/opt/apps/gogocartojs/web "$GOGOCARTOJS_CODE"/ &&
  10. docker cp "$container_id":/opt/apps/gogocartojs/dist "$GOGOCARTOJS_CODE"/ &&
  11. docker cp "$container_id":/opt/apps/gogocartojs/assets "$GOGOCARTOJS_CODE"/ &&
  12. docker rm "$container_id"
  13. }