Skip to content

Commit 1bc2f79

Browse files
fix: version specification for dolt
1 parent a513126 commit 1bc2f79

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ DEFAULT_BASE_IMAGE=alpine
1212
DEFAULT_BASE_IMAGE_VERSION=${ALPINE_VERSION}
1313
DEFAULT_BASE=${DEFAULT_BASE_IMAGE}:${DEFAULT_BASE_IMAGE_VERSION}
1414
DOCTL_VERSION=1.70.0
15+
DOLT_VERSION=0.37.9
1516
DOTNET_VERSION=6.0
1617
GIT_VERSION=2.32.0
1718
GH_VERSION=2.5.2

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ dockerized <command>
6464
- tree
6565
- zip
6666
- Other utilities
67+
- dolt
6768
- youtube-dl (Youtube downloader)
6869
- jq
6970
- (latex)

apps/dolt/build.sh

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
#!/usr/bin/env bash
12
DOLT_VERSION=$1
2-
apk add --no-cache bash curl
3-
wget -O - https://github.com/dolthub/dolt/releases/${DOLT_VERSION}/download/install.sh | bash
3+
4+
set -e
5+
6+
if [ -z "$DOLT_VERSION" ]; then
7+
echo "$DOLT_VERSION not set"
8+
exit 1
9+
fi
10+
11+
if [ "$DOLT_VERSION" == "latest" ]; then
12+
curl -L https://github.com/dolthub/dolt/releases/latest/download/install.sh | bash
13+
else
14+
curl -L https://github.com/dolthub/dolt/releases/download/v${DOLT_VERSION}/install.sh | bash
15+
fi

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,13 @@ services:
6464
volumes:
6565
- "${HOME:-home}/.dockerized/apps/doctl:/root"
6666
dolt:
67-
image: "dockerized_dolt"
67+
image: "dockerized_dolt:${DOLT_VERSION}"
6868
build:
6969
context: "${DOCKERIZED_ROOT:-.}/apps/dolt"
7070
dockerfile: "${DOCKERIZED_ROOT:-.}/apps/alpine/Dockerfile"
7171
args:
7272
ALPINE_VERSION: "${ALPINE_VERSION}"
73+
ALPINE_PACKAGES: "bash curl"
7374
BUILD_SCRIPT_ARGS: "${DOLT_VERSION}"
7475
volumes:
7576
- "${DOCKERIZED_ROOT:-.}/apps/dolt/init.sh:/init.sh"

0 commit comments

Comments
 (0)