Skip to content
This repository was archived by the owner on Jun 30, 2024. It is now read-only.

Commit 8a8a780

Browse files
committed
Host our own version of our production web2py
1 parent e7a5ef4 commit 8a8a780

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

docker/docker_tools.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,8 @@ def init(
276276
# Per the `Docker docs <https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user>`_, enable running Docker as a non-root user.
277277
#
278278
# Ignore errors if the groupadd fails; the group may already exist.
279-
xqt('sudo groupadd docker', check=False)
280-
xqt('sudo usermod -a -G docker $USER')
279+
xqt("sudo groupadd docker", check=False)
280+
xqt("sudo usermod -a -G docker $USER")
281281

282282
# Until group privileges to take effect, use ``sudo`` to run Docker.
283283
docker_sudo = True
@@ -340,7 +340,7 @@ def init(
340340
"sudo dscl . append /Groups/www-data GroupMembership $USER",
341341
)
342342
else:
343-
xqt('sudo usermod -a -G www-data $USER')
343+
xqt("sudo usermod -a -G www-data $USER")
344344
did_group_add = True
345345

346346
# Provide server-related CLIs. While installing this sooner would be great, we can't assume that the prereqs (the downloaded repo) are available.
@@ -432,7 +432,11 @@ def is_single(self):
432432
)
433433
@click.option("--rust/--no-rust", default=False, help="Install the Rust toolchain.")
434434
@click.option("--tex/--no-tex", default=False, help="Install LaTeX and related tools.")
435-
@click.option("--verilog/--no-verilog", default=False, help="Install the Icarus Verilog simulation tool.")
435+
@click.option(
436+
"--verilog/--no-verilog",
437+
default=False,
438+
help="Install the Icarus Verilog simulation tool.",
439+
)
436440
def build(
437441
passthrough: Tuple,
438442
build_config_name: str,
@@ -827,9 +831,9 @@ def _build_phase_1(
827831
)
828832
w2p_parent = Path(env.WEB2PY_PATH).parent
829833
xqt(
830-
f"eatmydata wget --no-verbose https://mdipierro.pythonanywhere.com/examples/static/{WEB2PY_VERSION}/web2py_src.zip",
831-
"eatmydata unzip -q web2py_src.zip",
832-
"rm -f web2py_src.zip",
834+
"eatmydata wget --no-verbose https://runestone.academy/cdn/runestone/web2py_src_2.21.zip",
835+
"eatmydata unzip -q web2py_src_2.21.zip",
836+
"rm -f web2py_src_2.21.zip",
833837
cwd=w2p_parent,
834838
)
835839

0 commit comments

Comments
 (0)