Skip to content

Commit

Permalink
VirtualBox people have difficult version numbering. Allow for the alp…
Browse files Browse the repository at this point in the history
…ha char

in the macOS version.
  • Loading branch information
kaosagnt committed Sep 7, 2023
1 parent 83bda1e commit 5ac22a7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile.osx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ ARG DOCKER_MACHINE_VERSION
ARG GITLAB_MACHINE_VERSION
ARG T2D_MACHINE_VERSION
ARG VBOX_VERSION
ARG VBOX_VERSION_ALPHA
ARG VBOX_REV
ARG MIXPANEL_TOKEN

Expand Down Expand Up @@ -38,7 +39,7 @@ RUN curl -fsSL https://github.com/mackyle/xar/archive/xar-1.6.1.tar.gz | tar xvz

ENV VBOX_DIR https://download.virtualbox.org/virtualbox/$VBOX_VERSION

RUN curl -fsSL -o /vbox.dmg "$VBOX_DIR/VirtualBox-$VBOX_VERSION-$VBOX_REV-OSX.dmg" \
RUN curl -fsSL -o /vbox.dmg "$VBOX_DIR/VirtualBox-$VBOX_VERSION$VBOX_VERSION_ALPHA-$VBOX_REV-OSX.dmg" \
&& echo "$(curl -fsSL "$VBOX_DIR"'/SHA256SUMS' | awk '$2 ~ /-OSX.dmg$/ { print $1 }') */vbox.dmg" | sha256sum -c -

# Why '--strip-components 3'? The client binary is in usr/local/bin/docker in
Expand Down
1 change: 1 addition & 0 deletions script/build-osx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ docker build \
--build-arg GITLAB_MACHINE_VERSION="${GITLAB_MACHINE_VERSION}" \
--build-arg T2D_MACHINE_VERSION="${T2D_MACHINE_VERSION}" \
--build-arg VBOX_VERSION="${VBOX_VERSION}" \
--build-arg VBOX_VERSION_ALPHA="${VBOX_VERSION_ALPHA}" \
--build-arg VBOX_REV="${VBOX_REV}" \
--build-arg MIXPANEL_TOKEN="${MIXPANEL_TOKEN}" \
.
Expand Down
3 changes: 2 additions & 1 deletion versions
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ GITLAB_MACHINE_VERSION=gitlab.18
T2D_MACHINE_VERSION=t2d.4
GIT_VERSION=2.42.0
GIT_REVISION=1
VBOX_VERSION=6.1.46a
VBOX_VERSION=6.1.46
VBOX_VERSION_ALPHA=a
VBOX_REV=158378
VBOX_VERSION_WIN=7.0.10
VBOX_REV_WIN=158379
Expand Down

0 comments on commit 5ac22a7

Please sign in to comment.