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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
flg_masters
TM
Secure solution for nexus infrastructure
Commits
c77f0f5e
Commit
c77f0f5e
authored
3 months ago
by
ping
Browse files
Options
Downloads
Patches
Plain Diff
Update Dockerfile to download nexus-exam dependencies
parent
c7363dd4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
live_exam_os/Dockerfile
+3
-4
3 additions, 4 deletions
live_exam_os/Dockerfile
live_exam_os/config/03-post_install/3000-nexus_exam.sh
+5
-6
5 additions, 6 deletions
live_exam_os/config/03-post_install/3000-nexus_exam.sh
with
8 additions
and
10 deletions
live_exam_os/Dockerfile
+
3
−
4
View file @
c77f0f5e
...
@@ -11,13 +11,12 @@ RUN git clone https://github.com/limine-bootloader/limine.git --branch=v8.x-bina
...
@@ -11,13 +11,12 @@ RUN git clone https://github.com/limine-bootloader/limine.git --branch=v8.x-bina
make
&&
\
make
&&
\
cp
/opt/limine/limine /bin/
cp
/opt/limine/limine /bin/
RUN
git config
--global
--add
safe.directory /data
RUN
wget https://go.dev/dl/
$archive
&&
tar
-C
/usr/local
-xzf
$archive
RUN
wget https://go.dev/dl/
$archive
&&
tar
-C
/usr/local
-xzf
$archive
WORKDIR
/nexus
WORKDIR
/nexus
RUN
mkdir
src
COPY
src src
COPY
src src
COPY
Makefile .
COPY
ca-cert.pem .
RUN
make build_nexus-exam
SERVER
=
"127.0.0.1:1077"
CERT
=
"ca-cert.pem"
EXAM_USER
=
"user"
EXAM_PWD
=
"pwd"
RUN
cd
src/client
&&
go mod download
This diff is collapsed.
Click to expand it.
live_exam_os/config/03-post_install/3000-nexus_exam.sh
+
5
−
6
View file @
c77f0f5e
...
@@ -5,13 +5,12 @@
...
@@ -5,13 +5,12 @@
echo
" [Compiling nexus-exam...]"
echo
" [Compiling nexus-exam...]"
pushd
..
>
/dev/null
pushd
..
>
/dev/null
run_command make build_nexus-exam
SERVER
=
$SERVER
CERT
=
$CERT
EXAM_USER
=
$EXAM_USER
EXAM_PWD
=
$EXAM_PWD
run_command make build_nexus-exam
SERVER
=
$SERVER
CERT
=
$CERT
EXAM_USER
=
$EXAM_USER
EXAM_PWD
=
$EXAM_PWD
check_exit_code
$?
"Error during nexus-exam compilation"
if
[[
"
$ROOTFS_DIR
"
!=
/
*
]]
;
then
if
[[
"
$ROOTFS_DIR
"
!=
/
*
]]
;
then
mkdir
-p
live_exam_os/
$ROOTFS_DIR
/usr/local/bin
run_command
mkdir
-p
live_exam_os/
$ROOTFS_DIR
/usr/local/bin
cp
build/nexus-exam live_exam_os/
$ROOTFS_DIR
/usr/local/bin/nexus-exam
run_command
cp
build/nexus-exam live_exam_os/
$ROOTFS_DIR
/usr/local/bin/nexus-exam
else
else
mkdir
-p
$ROOTFS_DIR
/usr/local/bin
run_command
mkdir
-p
$ROOTFS_DIR
/usr/local/bin
cp
build/nexus-exam
$ROOTFS_DIR
/usr/local/bin/nexus-exam
run_command
cp
build/nexus-exam
$ROOTFS_DIR
/usr/local/bin/nexus-exam
fi
fi
make clean_client
run_command
make clean_client
popd
>
/dev/null
popd
>
/dev/null
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