Baphomet is the dedicated bot for nulloctet matrix
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.

26 lines
567 B

  1. #!/usr/bin/env bash
  2. DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
  3. pushd "${DIR}/.."
  4. echo "Writing local testing build.info"
  5. ./scripts/get_build.sh > build.info
  6. echo "DOCKER_DEVELOPMENT_"$(cat build.info) > build.info
  7. CONTAINER_NAME=baphomet-dev
  8. IMAGE_NAME=baphomet-js
  9. IMAGE_TAG=dev
  10. IMAGE_BUILD_DIR=.
  11. docker build -t ${IMAGE_NAME}:${IMAGE_TAG} ${IMAGE_BUILD_DIR}
  12. rm build.info
  13. docker rm ${CONTAINER_NAME}
  14. docker run -it \
  15. -e NODE_ENV=development \
  16. -e LOG_LEVEL=debug \
  17. --name ${CONTAINER_NAME} \
  18. ${IMAGE_NAME}:${IMAGE_TAG}
  19. popd