Skip to content

Commit

Permalink
Fix mok build failure
Browse files Browse the repository at this point in the history
Fixes error:
ERROR: docker network create failed
  • Loading branch information
mclarkson committed Oct 21, 2024
1 parent f1260e1 commit df57237
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = 0.8.15
VERSION = 0.8.16
K8SVERSION = 1.31.1

.PHONY: all
Expand Down
12 changes: 7 additions & 5 deletions package/mok
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ _PA_new
# Args: None expected.
_GL_new() {

declare -rg MOKVERSION="0.8.15"
declare -rg MOKVERSION="0.8.16"
declare -rg K8SVERSION="1.31.1"
declare -rg GO_VERSION="1.23.2"

Expand Down Expand Up @@ -539,7 +539,7 @@ _ER_new || exit 1
# shellcheck shell=bash disable=SC2148
# UT - Utilities

# _UT is an associative array that holds data specific to shared utilities.
# _UT is an associative array that holds data specific to general utilities.
declare -A _UT

# Declare externally defined global variables ---------------------------------
Expand Down Expand Up @@ -926,7 +926,7 @@ _GC_new || exit 1
# shellcheck shell=bash disable=SC2148
# EX - EXec

# EX is an associative array that holds data specific to the get cluster command.
# EX is an associative array that holds data specific to the exec cluster command.
declare -A _EX

# Declare externally defined variables ----------------------------------------
Expand Down Expand Up @@ -1098,7 +1098,7 @@ _EX_new || exit 1
# shellcheck shell=bash disable=SC2148
# DC - Delete Cluster

# _DC is an associative array that holds data specific to the get cluster command.
# _DC is an associative array that holds data specific to deleting a cluster.
declare -A _DC

# Declare externally defined variables ----------------------------------------
Expand Down Expand Up @@ -2240,7 +2240,7 @@ EnD
# shellcheck shell=bash disable=SC2148
# CU - Container Utilities

# _CU is an associative array that holds data specific to containers.
# _CU is an associative array that holds data specific to container utils.
declare -A _CU

# Declare externally defined variables ----------------------------------------
Expand Down Expand Up @@ -2739,6 +2739,8 @@ _BI_modify_container_image() {
docker stop -t 5 mok-build-modify &>/dev/null
docker rm mok-build-modify &>/dev/null

CC_set_clustername "build" || err || return

# Start container
CU_create_container "mok-build-modify" "mok-build-modify" "${K8SVERSION}" ||
return
Expand Down
2 changes: 2 additions & 0 deletions src/buildimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ _BI_modify_container_image() {
docker stop -t 5 mok-build-modify &>/dev/null
docker rm mok-build-modify &>/dev/null

CC_set_clustername "build" || err || return

# Start container
CU_create_container "mok-build-modify" "mok-build-modify" "${K8SVERSION}" ||
return
Expand Down
2 changes: 1 addition & 1 deletion src/globals.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# Args: None expected.
_GL_new() {

declare -rg MOKVERSION="0.8.15"
declare -rg MOKVERSION="0.8.16"
declare -rg K8SVERSION="1.31.1"
declare -rg GO_VERSION="1.23.2"

Expand Down

0 comments on commit df57237

Please sign in to comment.