Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Secure solution for nexus infrastructure
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
flg_masters
TM
Secure solution for nexus infrastructure
Commits
09d95de4
Commit
09d95de4
authored
9 months ago
by
Florent Gluck
Browse files
Options
Downloads
Patches
Plain Diff
minor changes to nexus live build process
updated nexus-exam to wait 15 sec before fetching a new token
parent
292fc3d0
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
live_exam_os/Dockerfile
+2
-5
2 additions, 5 deletions
live_exam_os/Dockerfile
live_exam_os/config/config
+0
-1
0 additions, 1 deletion
live_exam_os/config/config
src/client/nexus-exam/nexus-exam.go
+5
-0
5 additions, 0 deletions
src/client/nexus-exam/nexus-exam.go
with
7 additions
and
6 deletions
live_exam_os/Dockerfile
+
2
−
5
View file @
09d95de4
...
...
@@ -27,7 +27,7 @@ RUN make build_nexus-exam SERVER=${server_ip}:${server_port} CERT=${cert} EXAM_U
#--------------------------------------------------------------------------------------------------------------------
# Final builder stage that generates the live nexus-exam ISO image
FROM
debian:
stable-slim
FROM
debian:
12
ARG
server_ip
ARG
server_port
...
...
@@ -35,10 +35,7 @@ ARG cert
ARG
exam_user
ARG
exam_pwd
RUN
apt-get update
&&
apt-get
install
-y
\
live-build
\
live-config
\
&&
rm
-rf
/var/lib/apt/lists/
*
RUN
apt-get update
&&
apt-get
install
-y
live-build live-config
&&
rm
-rf
/var/lib/apt/lists/
*
WORKDIR
/live-default
...
...
This diff is collapsed.
Click to expand it.
live_exam_os/config/config
+
0
−
1
View file @
09d95de4
...
...
@@ -4,7 +4,6 @@ lb config noauto \
--system
live
\
--architectures
amd64
\
--mode
debian
\
--bootloaders
grub-efi
\
--parent-distribution
bookworm
\
--distribution
bookworm
\
--binary-images
iso
\
...
...
This diff is collapsed.
Click to expand it.
src/client/nexus-exam/nexus-exam.go
+
5
−
0
View file @
09d95de4
...
...
@@ -143,6 +143,11 @@ func setHeaderToken() {
// Recurrently obtains a new JWT token so that the user session doesn't expire.
func
refreshToken
(
parent
fyne
.
Window
)
{
// Wait 10 seconds before attempting to refresh the token.
// The reason for this delay is that when nexus-exam is launched from
// a nexus live image, the wifi interface might not be up yet.
time
.
Sleep
(
10
*
time
.
Second
)
for
{
setHeaderToken
()
refreshedToken
,
err
:=
cmdToken
.
GetToken
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment