Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
ppann
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Boston University PhD
IPFRE
ppann
Commits
7fdb1e76
Commit
7fdb1e76
authored
Nov 15, 2023
by
Weiqi
Browse files
Options
Downloads
Patches
Plain Diff
Put a bit more work in Dockerfile
parent
ca18d6e7
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+15
-22
15 additions, 22 deletions
Dockerfile
with
15 additions
and
22 deletions
Dockerfile
+
15
−
22
View file @
7fdb1e76
FROM
ubuntu:23.10
# Set the relic version number in case we may want to update it.
ENV
VERSION=0.6.0
# Update libraries.
RUN
apt update
&&
apt upgrade
-y
# Install needed libraries.
...
...
@@ -7,43 +10,33 @@ RUN apt install -y wget unzip build-essential libgmp-dev libssl-dev cmake
# Clean up.
RUN
apt clean
RUN
cmake
--version
# Work in the home directory.
WORKDIR
"/home"
# Download library and unzip.
RUN
wget https://github.com/relic-toolkit/relic/archive/refs/tags/
0.6.0.zip
RUN
unzip 0.6.0.zip
RUN
wget
-P
/home
https://github.com/relic-toolkit/relic/archive/refs/tags/
$VERSION
.tar.gz
&&
\
tar
-xzf
/home/0.6.0.tar.gz
-C
/home
# Library installation, first install the symmetric curve.
WORKDIR
"/home/relic-0.6.0"
RUN
mkdir
-p
relic-target-sym
WORKDIR
"/home/relic-0.6.0/relic-target-sym"
# Library installation; first install the symmetric curve.
RUN
mkdir
-p
/home/relic-
$VERSION
/relic-target-sym
WORKDIR
"/home/relic-$VERSION/relic-target-sym"
RUN
cmake
-DLABEL
=
sym ..
RUN
../preset/gmp-pbc-ss1536.sh ../
RUN
make
RUN
make
install
# Library installation, install the asymmetric curve.
WORKDIR
"/home/relic-0.6.0"
RUN
mkdir
-p
relic-target-asym
WORKDIR
"/home/relic-0.6.0/relic-target-asym"
# Library installation; now install the asymmetric curve.
RUN
mkdir
-p
/home/relic-
$VERSION
/relic-target-asym
WORKDIR
"/home/relic-$VERSION/relic-target-asym"
RUN
cmake
-DLABEL
=
asym ..
RUN
../preset/gmp-pbc-bn254.sh ../
RUN
make
RUN
make
install
# Copy the files over to working directory.
WORKDIR
"/home"
RUN
mkdir
app
COPY
. /home/app
RUN
mkdir
-p
/home/project/build
COPY
. /home/project
# Build the project.
WORKDIR
"/home/app"
RUN
mkdir
build
WORKDIR
"/home/app/build"
RUN
cmake /home/app
WORKDIR
"/home/project/build"
RUN
cmake /home/project
RUN
make
# Execute the test.
...
...
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