Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
50569e2
chore(deps): update dependency wait-on to v9.0.1 (#1281)
renovate[bot] Sep 22, 2025
d637ff2
chore(deps): update dependency @types/dockerode to v3.3.44 (#1280)
renovate[bot] Sep 22, 2025
4b8fed1
chore(deps): update dependency lint-staged to v16.2.0 (#1282)
renovate[bot] Sep 23, 2025
7ee3aa5
chore(deps): update commitlint monorepo to v20 (#1283)
renovate[bot] Sep 26, 2025
a38ee61
chore(deps): update eclipse-temurin docker tag to v25 (#1286)
renovate[bot] Sep 28, 2025
f22fc03
chore(deps): update dependency lint-staged to v16.2.1 (#1284)
renovate[bot] Sep 28, 2025
072b7e0
chore(deps): update dependency lint-staged to v16.2.3 (#1287)
renovate[bot] Sep 29, 2025
68e02ba
chore(deps): update dependency patch-package to v8.0.1 (#1288)
renovate[bot] Oct 1, 2025
a65efa5
chore(deps): update dependency cross-env to v10.1.0 (#1289)
renovate[bot] Oct 1, 2025
72572ce
chore(deps): update dependency @types/react to v18.3.25 (#1290)
renovate[bot] Oct 3, 2025
fc54988
chore(deps): update dependency @commitlint/cli to v20.1.0 (#1291)
renovate[bot] Oct 3, 2025
42dfb3c
chore(deps): update dependency stylelint to v16.25.0 (#1293)
renovate[bot] Oct 4, 2025
9c69b78
chore(deps): update dependency stylelint-config-standard to v39.0.1 (…
renovate[bot] Oct 8, 2025
988e252
chore(deps): update dependency @types/react to v18.3.26 (#1295)
renovate[bot] Oct 8, 2025
1734e93
chore(deps): update dependency less to v4.4.2 (#1296)
renovate[bot] Oct 8, 2025
4a57dca
fix(deps): update dependency semver to v7.7.3 (#1297)
renovate[bot] Oct 9, 2025
d4acdac
chore(deps): update dependency lint-staged to v16.2.4 (#1298)
renovate[bot] Oct 12, 2025
eb5d0b0
chore(deps): update actions/setup-node action to v6 (#1299)
renovate[bot] Oct 15, 2025
faddf65
chore(deps): update dependency lint-staged to v16.2.5 (#1301)
renovate[bot] Oct 22, 2025
ca15e97
chore(deps): update dependency lint-staged to v16.2.6 (#1304)
renovate[bot] Oct 24, 2025
c74d807
chore(deps): update dependency @types/archiver to v6.0.4 (#1305)
renovate[bot] Oct 25, 2025
d9b71bc
chore(deps): update dependency @types/dockerode to v3.3.45 (#1306)
renovate[bot] Oct 25, 2025
6bc29d0
chore(deps): update node.js to v22.21.0 (#1274)
renovate[bot] Oct 28, 2025
36920a4
chore(deps): update dependency @types/archiver to v7 (#1308)
renovate[bot] Oct 29, 2025
7a65b37
chore(deps): update node.js to v22.21.1 (#1310)
renovate[bot] Oct 31, 2025
8aa405c
chore(deps): update dependency wait-on to v9.0.3 (#1311)
renovate[bot] Nov 10, 2025
54662e9
chore(deps): update eclipse-temurin docker tag (#1312)
renovate[bot] Nov 10, 2025
a56bf61
feat(networks): retain custom block count input
Jem256 Oct 19, 2025
8a74722
test(network): adding missing tests
Jem256 Oct 19, 2025
51e2d3c
fix: missing type property
Jem256 Oct 20, 2025
21a0665
chore(deps): update dependency nodemon to v3.1.11 (#1313)
renovate[bot] Nov 14, 2025
49540a5
chore(deps): update dependency js-yaml to v4.1.1 (#1314)
renovate[bot] Nov 14, 2025
d2428d2
chore(deps): update dependency @types/dockerode to v3.3.46 (#1316)
renovate[bot] Nov 16, 2025
57c742f
chore(deps): update dependency @types/react to v18.3.27 (#1317)
renovate[bot] Nov 19, 2025
a57a066
chore(deps): update dependency @types/dockerode to v3.3.47 (#1318)
renovate[bot] Nov 20, 2025
ee11735
chore(deps): update dependency lint-staged to v16.2.7 (#1319)
renovate[bot] Nov 22, 2025
3ddaa4a
chore(deps): update actions/checkout action to v6 (#1320)
renovate[bot] Nov 22, 2025
b991169
chore(deps): update dependency stylelint to v16.26.0 (#1321)
renovate[bot] Nov 23, 2025
a999a4b
fix(deps): update dependency @types/lodash to v4.17.21 (#1323)
renovate[bot] Nov 24, 2025
b26f565
chore(deps): update dependency stylelint to v16.26.1 (#1324)
renovate[bot] Nov 29, 2025
0f8f611
feat(images): add support for LND v0.19.3-beta
jamaljsr Nov 12, 2025
20dcdd9
feat(images): add support for LND v0.20.0-beta
jamaljsr Nov 12, 2025
cd4d14f
feat(images): add support for CLN v25.09.3
jamaljsr Nov 12, 2025
c52ea2d
feat(images): add support for tapd v0.7.0-alpha
jamaljsr Nov 12, 2025
f2f4b9f
feat(images): add support for litd v0.15.3-alpha
jamaljsr Nov 12, 2025
36a6b68
feat(images): add support for litd v0.16.0-alpha.rc1
jamaljsr Nov 12, 2025
0989222
feat(images): add new versions to nodes.json
jamaljsr Nov 29, 2025
467a8bf
feat(images): add support for Bitcoin Core v30.0
jamaljsr Nov 12, 2025
8e87431
feat(images): add support for Eclair v0.13.1
jamaljsr Nov 12, 2025
520ce27
ci: use macos-15-intel github CI image
jamaljsr Nov 29, 2025
2d9881c
Update GitHub funding configuration
jamaljsr Nov 30, 2025
a82d617
fix: use correct port for the litd REST endpoint
jcbrand Nov 14, 2025
2e0a013
feat(images): add support for litd v0.16.0-alpha
jamaljsr Dec 2, 2025
4f6e332
refactor: split default designer
Abdulkbk Mar 2, 2025
93c9618
feat: add simulation config modal
Abdulkbk Mar 2, 2025
d14d0d8
feat: add Dockerfile for simln
Abdulkbk May 20, 2025
bbd8d35
feat: add simln to docker configs
Abdulkbk Mar 3, 2025
35c870b
feat: update network model
Abdulkbk Mar 5, 2025
c0ad427
refactor: extract status button
Abdulkbk Aug 4, 2025
73bcb43
feat: add simulation management
Abdulkbk Mar 6, 2025
e56023f
test: add test to ln simulation
Abdulkbk Mar 11, 2025
955260e
refactor: extend nodeselector
Abdulkbk May 21, 2025
b2faa01
feat: add simln support to eclair
Abdulkbk May 23, 2025
5394aca
feat: add simln support to CLN
Abdulkbk Jun 24, 2025
4bf0102
feat: add sim support to litd
Abdulkbk Sep 17, 2025
9614295
docs: add docker build command to readme
Abdulkbk Sep 27, 2025
dcd2495
fix: format windows path to POSIX
Abdulkbk Oct 7, 2025
3904117
fix(simln): resolve simln issues on linux
jamaljsr Dec 4, 2025
ac40386
fix(simln): improve simulations UI
jamaljsr Dec 4, 2025
1bb9f95
chore(deps): update rust docker tag to v1.91.1 (#1333)
renovate[bot] Dec 5, 2025
b77d80c
chore(deps): update node.js to 9632533 (#1334)
renovate[bot] Dec 6, 2025
b2b03d0
chore(deps): update commitlint monorepo to v20.2.0 (#1335)
renovate[bot] Dec 7, 2025
cee4d63
chore(deps): update rust docker tag to v1.92.0 (#1337)
renovate[bot] Dec 13, 2025
a94762d
chore(deps): update dependency less to v4.5.1 (#1338)
renovate[bot] Dec 16, 2025
a6feb97
fix: tsc compilation error
jcbrand Sep 18, 2025
0cb5e37
feat: allow self-payment for invoices
jcbrand Sep 18, 2025
937b875
feat: add ability to specify Price Oracle metadata when creating an i…
jcbrand Dec 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: [jamaljsr]
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ jobs:
strategy:
matrix:
node_version: [20.x]
os: [ubuntu-latest, windows-latest, macos-13]
os: [ubuntu-latest, windows-latest, macos-15-intel]

steps:
- name: ubuntu file watcher tweak
if: matrix.os == 'ubuntu-latest'
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

- uses: actions/checkout@v5
- uses: actions/checkout@v6

- name: setup nodejs
uses: actions/setup-node@v5
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node_version }}
cache: yarn
Expand Down
23 changes: 23 additions & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ $ docker buildx inspect --bootstrap

### Tags

- `30.0` ([bitcoind/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/bitcoind/Dockerfile))
- `29.0` ([bitcoind/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/bitcoind/Dockerfile))
- `28.0` ([bitcoind/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/bitcoind/Dockerfile))
- `27.0` ([bitcoind/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/bitcoind/Dockerfile))
Expand Down Expand Up @@ -50,6 +51,8 @@ Replace `<version>` with the desired bitcoind version (ex: `0.18.1`)

### Tags

- `0.20.0-beta` ([lnd/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/lnd/Dockerfile))
- `0.19.3-beta` ([lnd/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/lnd/Dockerfile))
- `0.19.2-beta` ([lnd/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/lnd/Dockerfile))
- `0.19.1-beta` ([lnd/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/lnd/Dockerfile))
- `0.19.0-beta` ([lnd/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/lnd/Dockerfile))
Expand Down Expand Up @@ -107,6 +110,7 @@ Replace `<version>` with the desired LND version (ex: `0.7.1-beta`)

### Tags

- `25.09.3` ([clightning/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/clightning/Dockerfile))
- `25.05` ([clightning/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/clightning/Dockerfile))
- `25.02.2` ([clightning/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/clightning/Dockerfile))
- `25.02` ([clightning/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/clightning/Dockerfile))
Expand Down Expand Up @@ -146,6 +150,7 @@ Replace `<version>` with the desired c-lightning version (ex: `0.8.0`).

### Tags

- `0.13.1` ([eclair/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/eclair/Dockerfile))
- `0.12.0` ([eclair/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/eclair/Dockerfile))
- `0.11.0` ([eclair/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/eclair/Dockerfile))
- `0.10.0` ([eclair/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/eclair/Dockerfile))
Expand All @@ -172,6 +177,7 @@ Replace `<version>` with the desired Eclair version (ex: `0.3.3`).

### Tags

- `0.7.0-alpha` ([tap/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/tapd/Dockerfile))
- `0.6.1-alpha` ([tap/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/tapd/Dockerfile))
- `0.6.0-alpha` ([tap/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/tapd/Dockerfile))
- `0.5.1-alpha` ([tap/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/tapd/Dockerfile))
Expand Down Expand Up @@ -199,6 +205,8 @@ Replace `<version>` with the desired Tap version (ex: `0.2.0-alpha`).

### Tags

- `0.16.0-alpha` ([litd/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/litd/Dockerfile))
- `0.15.3-alpha` ([litd/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/litd/Dockerfile))
- `0.15.1-alpha` ([litd/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/litd/Dockerfile))
- `0.15.0-alpha` ([litd/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/litd/Dockerfile))
- `0.14.1-alpha` ([litd/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/litd/Dockerfile))
Expand All @@ -213,6 +221,21 @@ $ docker buildx build --platform linux/amd64,linux/arm64 --build-arg LITD_VERSIO

Replace `<version>` with the desired Tap version (ex: `0.13.3-alpha`).

## SimLN

### Tags

- `0.2.5` ([simln/Dockerfile](https://github.com/jamaljsr/polar/blob/master/docker/simln/Dockerfile))

**Building the image**

```sh
$ cd simln
$ docker buildx build --platform linux/amd64, linux/arm64 --build-arg SIMLN_VERSION=<version> -t polarlightning/simln:<version> --push .
```

Replace `<version>` with the desired SimLN version (ex: `0.2.5`).

# Out-of-Band Image Updates

> Note: These steps can only be performed by developers with commit access to this GitHub repo and push access to the Docker Hub repo
Expand Down
2 changes: 1 addition & 1 deletion docker/bitcoind/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN SYS_ARCH="$(uname -m)" \
&& rm *.tar.gz

RUN curl -SLO https://raw.githubusercontent.com/bitcoin/bitcoin/master/contrib/completions/bash/bitcoin-cli.bash \
&& mkdir /etc/bash_completion.d \
&& mkdir -p /etc/bash_completion.d \
&& mv bitcoin-cli.bash /etc/bash_completion.d/bitcoin-cli.bash-completion \
&& curl -SLO https://raw.githubusercontent.com/scop/bash-completion/master/bash_completion \
&& mv bash_completion /usr/share/bash-completion/
Expand Down
4 changes: 2 additions & 2 deletions docker/eclair/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#########################
# Original Source: https://github.com/ACINQ/eclair/blob/v0.12.0/Dockerfile
#########################
FROM eclipse-temurin:21.0.8_9-jdk-alpine as BUILD
FROM eclipse-temurin:25.0.1_8-jdk-alpine as BUILD

# Let's fetch eclair dependencies, so that Docker can cache them
# This way we won't have to fetch dependencies again if only the source code changes
Expand Down Expand Up @@ -55,7 +55,7 @@ RUN cp -R -f /usr/repo/* .
RUN ./mvnw package -pl eclair-node -am -DskipTests -Dgit.commit.id=notag -Dgit.commit.id.abbrev=notag -o
# It might be good idea to run the tests here, so that the docker build fail if the code is bugged

FROM eclipse-temurin:21.0.8_9-jre-alpine
FROM eclipse-temurin:25.0.1_8-jre-alpine
WORKDIR /app

# install jq for eclair-cli
Expand Down
2 changes: 1 addition & 1 deletion docker/litd/src.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Start with a NodeJS base image that also contains yarn.
FROM node:22.14.0-alpine@sha256:9bef0ef1e268f60627da9ba7d7605e8831d5b56ad07487d24d1aa386336d1944 as nodejsbuilder
FROM node:22.21.1-alpine@sha256:9632533eda8061fc1e9960cfb3f8762781c07a00ee7317f5dc0e13c05e15166f as nodejsbuilder

ARG LITD_VERSION

Expand Down
2 changes: 1 addition & 1 deletion docker/lnd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN SYS_ARCH="$(dpkg --print-architecture)" \
&& rm *.tar.gz

RUN curl -SLO https://raw.githubusercontent.com/lightningnetwork/lnd/master/contrib/lncli.bash-completion \
&& mkdir /etc/bash_completion.d \
&& mkdir -p /etc/bash_completion.d \
&& mv lncli.bash-completion /etc/bash_completion.d/ \
&& curl -SLO https://raw.githubusercontent.com/scop/bash-completion/master/bash_completion \
&& mv bash_completion /usr/share/bash-completion/
Expand Down
31 changes: 22 additions & 9 deletions docker/nodes.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"version": 75,
"version": 76,
"images": {
"LND": {
"latest": "0.19.2-beta",
"latest": "0.20.0-beta",
"versions": [
"0.20.0-beta",
"0.19.3-beta",
"0.19.2-beta",
"0.19.1-beta",
"0.19.0-beta",
Expand All @@ -17,6 +19,8 @@
"0.16.4-beta"
],
"compatibility": {
"0.20.0-beta": "29.0",
"0.19.3-beta": "29.0",
"0.19.2-beta": "29.0",
"0.19.1-beta": "29.0",
"0.19.0-beta": "29.0",
Expand All @@ -31,8 +35,8 @@
}
},
"c-lightning": {
"latest": "25.05",
"versions": ["25.05", "25.02.2", "25.02", "24.11.1", "24.11", "24.08.1", "24.05"]
"latest": "25.09.3",
"versions": ["25.09.3", "25.05", "25.02.2", "25.02", "24.11.1", "24.11", "24.08.1"]
},
"eclair": {
"latest": "0.12.0",
Expand All @@ -47,8 +51,9 @@
"versions": []
},
"tapd": {
"latest": "0.6.1-alpha",
"latest": "0.7.0-alpha",
"versions": [
"0.7.0-alpha",
"0.6.1-alpha",
"0.6.0-alpha",
"0.5.1-alpha",
Expand All @@ -57,6 +62,7 @@
"0.3.3-alpha"
],
"compatibility": {
"0.7.0-alpha": "0.19.0-beta",
"0.6.1-alpha": "0.19.0-beta",
"0.6.0-alpha": "0.19.0-beta",
"0.5.1-alpha": "0.18.5-beta",
Expand All @@ -66,13 +72,20 @@
}
},
"litd": {
"latest": "0.15.1-alpha",
"versions": ["0.15.1-alpha", "0.15.0-alpha", "0.14.1-alpha", "0.14.0-alpha"],
"latest": "0.16.0-alpha",
"versions": [
"0.16.0-alpha",
"0.15.3-alpha",
"0.15.1-alpha",
"0.15.0-alpha",
"0.14.1-alpha"
],
"compatibility": {
"0.16.0-alpha": "29.0",
"0.15.3-alpha": "29.0",
"0.15.1-alpha": "29.0",
"0.15.0-alpha": "29.0",
"0.14.1-alpha": "29.0",
"0.14.0-alpha": "29.0"
"0.14.1-alpha": "29.0"
}
}
}
Expand Down
76 changes: 76 additions & 0 deletions docker/simln/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
#########################
# Original Source: https://github.com/bitcoin-dev-project/sim-ln/blob/main/docker/Dockerfile

# Use the rust image as the base image for the build stage
FROM rust:1.92.0 AS base

# buildkit will provide this automatically, no need to pass it in
ARG TARGETARCH
#########################

#################### Polar Modification
# The version of sim-ln to use
ARG SIMLN_VERSION
####################

FROM base AS builder-amd64
ENV TARGET_RUST_ARCH="x86_64-unknown-linux-musl"

FROM base AS builder-arm64
ENV TARGET_RUST_ARCH="aarch64-unknown-linux-musl"
RUN apt-get update \
&& apt-get install clang llvm -y --no-install-recommends \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ENV CC_aarch64_unknown_linux_musl=clang
ENV AR_aarch64_unknown_linux_musl=llvm-ar
ENV CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_RUSTFLAGS="-Clink-self-contained=yes -Clinker=rust-lld"

FROM builder-${TARGETARCH} AS builder
RUN echo "Building for architecture: ${TARGET_RUST_ARCH}"

#################### Polar Modification
# Download the simln source code
RUN curl -SLO https://github.com/bitcoin-dev-project/sim-ln/archive/refs/tags/v${SIMLN_VERSION}.tar.gz \
&& tar -xzf *.tar.gz -C . \
&& mv sim-ln-${SIMLN_VERSION} /sim-ln \
&& rm *.tar.gz
####################
# Install the dependencies required for building sim-ln
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
protobuf-compiler musl-tools build-essential perl \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

# Set to 1 to instruct openssl-sys to link OpenSSL statically, ensuring a fully static binary
ENV OPENSSL_STATIC=1
# Set to 1 to enable vendoring, making openssl-sys build OpenSSL from source instead of using system libraries
ENV OPENSSL_VENDORED=1

RUN rustup target add ${TARGET_RUST_ARCH}
RUN rustup component add rustfmt
RUN cd /sim-ln && RUSTFLAGS='-C target-feature=+crt-static' cargo build --locked --release --target=${TARGET_RUST_ARCH}
RUN mv /sim-ln/target/${TARGET_RUST_ARCH}/release/sim-cli /sim-ln/sim-cli

# Use a new stage with a smaller base image to reduce image size
FROM alpine:latest

RUN apk update && apk upgrade

# Copy the sim-cli binaries from the build stage to the new stage
COPY --from=builder /sim-ln/sim-cli /usr/local/bin/

#################### Polar Modification
# Original lines:
# COPY entrypoint.sh /entrypoint.sh
# Copy the entrypoint script to the container
COPY docker-entrypoint.sh /entrypoint.sh
####################

RUN chmod +x entrypoint.sh

STOPSIGNAL SIGINT

ENTRYPOINT [ "/entrypoint.sh" ]

41 changes: 41 additions & 0 deletions docker/simln/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/bin/sh

####################
# Original Source: https://github.com/bitcoin-dev-project/sim-ln/blob/main/docker/entrypoint.sh
####################

# Define the start command
START_COMMAND="/usr/local/bin/sim-cli --sim-file $SIMFILE_PATH"

# Check if a custom data directory was provided
if [[ ! -z ${DATA_DIR} ]]; then
START_COMMAND="$START_COMMAND --data-dir $DATA_DIR"
fi

# Check for version arg
if [[ ! -z ${VERSION} ]]; then
START_COMMAND="$START_COMMAND --version"
fi

# Check for help arg
if [[ ! -z ${HELP} ]]; then
START_COMMAND="$START_COMMAND --help"
fi

# Check for log level arg
if [[ ! -z ${LOG_LEVEL} ]]; then
START_COMMAND="$START_COMMAND --log-level $LOG_LEVEL"
fi

# Check for total time arg
if [[ ! -z ${TOTAL_TIME} ]]; then
START_COMMAND="$START_COMMAND --total-time $TOTAL_TIME"
fi

# Check for print-batch-size arg
if [[ ! -z ${PRINT_BATCH_SIZE} ]]; then
START_COMMAND="$START_COMMAND --print-batch-size $PRINT_BATCH_SIZE"
fi

# start the container
exec $START_COMMAND
Loading
Loading