Skip to content

Commit

Permalink
Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
benma committed Jul 1, 2024
1 parent 497932c commit 4784c90
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions bitbox-bridge/release/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# If you change this, also change the llvm repo below.
FROM ubuntu:20.04
FROM ubuntu:22.04

ARG DEBIAN_FRONTEND=noninteractive

Expand Down Expand Up @@ -37,12 +37,12 @@ RUN gem install --no-document fpm
##############################
# llvm (needed because some rust crates compile C code). See https://apt.llvm.org/.
RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
RUN add-apt-repository 'deb http://apt.llvm.org/focal llvm-toolchain-focal-16 main'
RUN add-apt-repository 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main'
RUN apt-get update -y && apt-get install -y --no-install-recommends \
llvm-16 \
clang-16
RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-16 100
RUN update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-16 100
llvm-18 \
clang-18
RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-18 100
RUN update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-18 100


##############################
Expand Down Expand Up @@ -76,7 +76,7 @@ RUN cd /opt/osxcross && UNATTENDED=yes OSX_VERSION_MIN=10.16 ./build.sh
# Rust compiler
ENV PATH /opt/cargo/bin:$PATH
ENV RUSTUP_HOME=/opt/rustup
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | CARGO_HOME=/opt/cargo sh -s -- --profile minimal --default-toolchain 1.69.0 -y
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | CARGO_HOME=/opt/cargo sh -s -- --profile minimal --default-toolchain 1.79.0 -y
RUN rustup target add x86_64-pc-windows-gnu
RUN rustup target add x86_64-apple-darwin
RUN rustup target add aarch64-apple-darwin
Expand Down
6 changes: 3 additions & 3 deletions bitbox-bridge/release/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# A poor mans command runner
CONTAINER=shiftcrypto/bitbox-bridge
CONTAINER=shiftcrypto/bitbox-bridge:2
USER=$(shell id -u):$(shell id -g)
MOUNT=$(shell pwd)/../..:/bitbox-bridge

Expand All @@ -14,10 +14,10 @@ release:
docker run --user ${USER} --interactive --tty -v ${MOUNT} -w /bitbox-bridge ${CONTAINER} bitbox-bridge/release/release.sh

release-linux:
docker run --user ${USER} --interactive --tty -v ${MOUNT} -w /bitbox-bridge ${CONTAINER} bitbox-bridge/release/linux/release.sh
docker run --interactive --tty -v ${MOUNT} -w /bitbox-bridge ${CONTAINER} bitbox-bridge/release/linux/release.sh

release-windows:
docker run --user ${USER} --interactive --tty -v ${MOUNT} -w /bitbox-bridge ${CONTAINER} bitbox-bridge/release/windows/release.sh
docker run --interactive --tty -v ${MOUNT} -w /bitbox-bridge ${CONTAINER} bitbox-bridge/release/windows/release.sh

release-darwin:
docker run --user ${USER} --interactive --tty -v ${MOUNT} -w /bitbox-bridge ${CONTAINER} bitbox-bridge/release/darwin/release.sh
Expand Down

0 comments on commit 4784c90

Please sign in to comment.