stack-orchestrator/container-build/cerc-builder-js
2023-01-03 21:16:20 -07:00
..
build-npm-package-local-dependencies.sh Add more output 2023-01-03 21:16:20 -07:00
build-npm-package.sh Add yarn fixup script for local registry 2022-12-14 09:23:12 -07:00
Dockerfile Put script into the container 2022-12-14 09:26:18 -07:00
entrypoint.sh Add generic entrypoint 2022-12-12 12:38:12 -07:00
README.md Add yarn fixup script for local registry 2022-12-14 09:23:12 -07:00
yarn-local-registry-fixup.sh Fix typo 2022-12-19 09:44:51 -07:00

JS/TS Package Builder

This container is designed to be used as a simple "build runner" environment for building and publishing JS/TS projects using yarn.

Running a build

As a temporary measure while the necessary functionality is being added to Stack Orchestrator, it is possible to build packages manually by invoking docker run , for example as follows:

$ docker run -it --add-host host.docker.internal:host-gateway \
  -v ${HOME}/cerc/laconic-sdk:/workspace cerc/builder-js \
  sh -c 'cd /workspace && NPM_AUTH_TOKEN=6613572a28ebebaee20ccd90064251fa8c2b94f6 \
  /build-npm-package.sh http://host.docker.internal:3000/api/packages/cerc-io/npm/ 0.1.4'

or:

$ docker run --rm -it --add-host host.docker.internal:host-gateway \
  -v ${HOME}/cerc/laconic-registry-cli:/workspace cerc/builder-js  \
  sh -c 'cd /workspace && NPM_AUTH_TOKEN=6613572a28ebebaee20ccd90064251fa8c2b94f6 \
  /build-npm-package.sh http://host.docker.internal:3000/api/packages/cerc-io/npm/ 0.1.4'