-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor cleanups to docker image (#8925)
* Minor cleanups to docker image * format * nit
- Loading branch information
Showing
5 changed files
with
51 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,26 @@ | ||
# CI Tools | ||
|
||
This folder contains miscellaneous utilities for CI. | ||
|
||
# Docker | ||
|
||
## Building | ||
|
||
A custom docker image requires a certain number of directories to be present | ||
from a desired _edition_. The root directory of the docker build context can be | ||
provided in the `docker build` command: | ||
|
||
```bash | ||
docker build -t <my-custom-name> -f tools/ci/docker/DockerFile --build-context docker-tools=tools/ci/docker built-distribution/enso-engine-$VERSION-linux-amd64/enso-$VERSION | ||
``` | ||
|
||
where for a locally built distribution on Linux it would be `VERSION=0.0.0-dev`. | ||
|
||
## Running | ||
|
||
To start Language Server with a default configuration simply run the built image | ||
with the chosen name: | ||
|
||
```bash | ||
docker run -t <my-custom-name> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
echo "Starting Enso Runtime in version" | ||
if [ "$PRINT_VERSION" == "1" ]; then | ||
/opt/enso/bin/enso --version | ||
fi | ||
|
||
/opt/enso/bin/enso --version | ||
if [ "$LS_ROOT_ID" == "" ]; then | ||
LS_ROOT_ID="00000000-0000-0000-0000-000000000001" | ||
fi | ||
|
||
/opt/enso/bin/enso --log-level $LOG_LEVEL "$@" | ||
if [ "$INTERFACE" == "" ]; then | ||
INTERFACE="0.0.0.0" | ||
fi | ||
|
||
/opt/enso/bin/enso --log-level "$LOG_LEVEL" --rpc-port $RPC_PORT --data-port $DATA_PORT --root-id "$LS_ROOT_ID" --interface "$INTERFACE" "$@" |