Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
FloVer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
AVA
FloVer
Commits
306bb00f
Commit
306bb00f
authored
Apr 17, 2018
by
Heiko Becker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Dockerfile to not depend on HOLCOMMIT variable in the file
parent
18e07778
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
66 additions
and
2 deletions
+66
-2
Dockerfile
Dockerfile
+11
-2
hol4/.HOLCOMMIT
hol4/.HOLCOMMIT
+1
-0
hol4/configure_hol.sh
hol4/configure_hol.sh
+54
-0
No files found.
Dockerfile
View file @
306bb00f
...
...
@@ -24,13 +24,22 @@ RUN git clone https://github.com/polyml/polyml.git polyml && \
git checkout v5.7
&&
\
./configure
&&
make
&&
make
install
ENV
HOLCOMMIT 0de2c07679bd3773231f63059bbdd86050eeb452
ADD
./hol4/.HOLCOMMIT /root/HOLCOMMIT
# RUN cat /root/HOLCOMMIT
# RUN export HOLCOMMIT="$(cat /root/HOLCOMMIT)"
# RUN echo $HOLCOMMIT
# Download HOL4 and compile
RUN
git clone https://github.com/HOL-Theorem-Prover/HOL.git HOL4
&&
\
cd
HOL4
&&
\
git checkout
$HOLCOMMIT
&&
\
git checkout
`
cat
/root/HOLCOMMIT
`
&&
\
git rev-parse HEAD
&&
\
poly < tools/smart-configure.sml
&&
\
./bin/build
RUN
echo
"HOLDIR=/root/HOL4"
>>
/root/.profile
ENV
HOLDIR /root/HOL4
hol4/.HOLCOMMIT
0 → 100644
View file @
306bb00f
648910463f185d9e35f121dc9d47f1cf544be789
hol4/configure_hol.sh
0 → 100755
View file @
306bb00f
#!/bin/bash
function
display_help
{
echo
"configure_hol.sh - Check for environment variables and HOL4"
echo
" commit hash to be correct"
echo
""
echo
-e
"--help
\t
Show this text"
echo
-e
" --init
\t
Initialize CakeML submodule to latest state"
}
INIT
=
no
while
[
$#
!=
0
]
;
do
case
"
$1
"
in
--help
)
display_help
;;
--init
)
INIT
=
yes
;;
*
)
esac
shift
done
if
[[
"
$HOLDIR
"
=
""
]]
;
then
echo
"ERROR: HOLDIR variable not set. Please configure the HOLDIR variable first"
exit
1
fi
DIR
=
pwd
HOLCOMMIT
=
"
$(
cat
./.HOLCOMMIT
)
"
if
[[
"
$INIT
"
=
"yes"
]]
;
then
echo
"Checking out CakeML submodule to correct state"
git submodule init
git submodule
--update
cakeml
echo
"Checking out correct HOL4 version"
cd
$HOLDIR
git checkout
$HOLCOMMIT
$HOLDIR
/bin/build cleanAll
poly <
$HOLDIR
/tools/smart-configure.sml
$HOLDIR
/bin/build
cd
$DIR
else
cd
$HOLDIR
CURR_HOL
=
"
$(
git rev-parse HEAD
)
"
if
[[
"
$CURR_HOL
"
=
"
$HOLCOMMIT
"
]]
then
echo
"All set. HOL4 is on the correct commit."
exit
0
else
echo
"Please make sure HOL4 uses the commit
$HOLCOMMIT
"
echo
"or consider running the script with the --init parameter."
fi
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment