-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.ubuntu22.gcc11.sh
More file actions
executable file
·21 lines (16 loc) · 981 Bytes
/
setup.ubuntu22.gcc11.sh
File metadata and controls
executable file
·21 lines (16 loc) · 981 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bash
# SPDX-FileCopyrightText: (C) 2022 user4223 and (other) contributors to ticket-decoder <https://github.com/user4223/ticket-decoder>
# SPDX-License-Identifier: GPL-3.0-or-later
set -o errexit
readonly WORKSPACE_ROOT="$(readlink -f $(dirname "$0"))"/../../
mkdir -p ${WORKSPACE_ROOT}/build/ubuntu22.gcc11.Release
docker buildx build ${WORKSPACE_ROOT} \
-t ubuntu22-gcc11-ticket-decoder-builder \
-f ${WORKSPACE_ROOT}/etc/docker/ubuntu22.gcc.Dockerfile \
--build-arg="GCC_VERSION=11"
docker run -it \
--mount type=bind,source=${WORKSPACE_ROOT}/source,target=/ticket-decoder/source,readonly \
--mount type=bind,source=${WORKSPACE_ROOT}/images,target=/ticket-decoder/images,readonly \
--mount type=bind,source=${WORKSPACE_ROOT}/CMakeLists.txt,target=/ticket-decoder/CMakeLists.txt,readonly \
--mount type=bind,source=${WORKSPACE_ROOT}/build/ubuntu22.gcc11.Release,target=/ticket-decoder/build/Release/bin \
ubuntu22-gcc11-ticket-decoder-builder