joj3 setup #32
Labels
No Label
bug
component
executor
component
framework
component
parser
component
UI
duplicate
enhancement
help wanted
invalid
priority
p0
priority
p1
priority
p2
priority
p3
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: JOJ/JOJ3#32
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
goal: ease joj deployment through a (ephemeral?) clone of a "template container"
idea:
@zzjc123 can you please list what software should be installed in JTC (docker, joj3/go, etc.)
for the hooks, we probably want to start with a simple script to
in the end the hook could simply clone a repo and run the above tasks based on the files in the repo (eg. list of packages to install, ssh keys of TAs, etc.)
I think git, golang, docker might be enough
what dependencies are needed for a JOJ release? (containers should ship a joj release)?
you mean what softwares are needed for compiling the job or packages we used? If softwares I think golang itself is enough.
We may not need compile JOJ release if basic docker images (containing joj) are prepared.
new joj container ready for testing:
ssh -p 22151 tt@111.186.58.48
\to
all pub keys have been imported, so everybody should be able to connect. please now use this one for testingthe container is "minimal", nvim, docker, git are installed. please report here anything that is missing.
notes:
@all
tt user is for teaching team to connect, we probably want a joj user to run joj
register docker process
we may need to change the ownership of runner-image folder to keep it secure
progress:
@zzjc123
GITEA_RUNNER_REGISTRATION_TOKEN
different for each course/instance of the runner?we'll use acl to ensure things are ok
TOKEN can be repo level or higher level, currently repo level
We need joj3, healthcheck binary to run whole process
For this file, binary in $(pwd)/bin works, but joint-teapot couldn't work
I think it might related to virtual env but even add it , it returns
1st line of
.local/bin/joint-teapot
might need to change (at least) this. might be easier to run
pipx ./joint-teapot
inside docker? then install would be ok i guessmounting the whole
.local/pipx
could also help? (instead of the teapot venv)how can we run pipx inside docker?
seems python3 is missing from the containter :-D
Can we just leave teapot in image?
not sure, having bits and pieces in different places make it harder to maintain.teapot is also likely to receive quite a few updates so more maintenance
notes:
Install a python in container or mount python path? I tried to mount all python path I can find, but still couldn't make anythin work.
maybe we need to compile everything manually
all python commands are "not found" in docker. some dependencies are probably still missing.
true, so I am trying to compile one for it