Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding windows docker files for FStar docs and Fstar binaries
- Loading branch information
Showing
3 changed files
with
74 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Fstar binaries container used to build fstar binaries. | ||
# Binaries should always use the latest fstar image available. | ||
FROM fstar-windows-nt:latest | ||
|
||
ARG BUILDLOGFILE | ||
ARG MAXTHREADS | ||
ARG TARGET | ||
ARG BRANCHNAME | ||
ARG FSTARSOURCEVERSION | ||
|
||
# Add ssh key | ||
# We cannot copy directly to the .ssh folder, instead we copy to a temp folder | ||
WORKDIR "everestsshkey" | ||
COPY id_rsa . | ||
WORKDIR ".." | ||
|
||
# Now, using bash we copy the file, set the correct security and remove the previous folder | ||
RUN Invoke-BashCmd '"cd .ssh && cp ../everestsshkey/id_rsa . && chmod 600 id_rsa && rm -rf ../everestsshkey"' | ||
|
||
# Remove extra files. | ||
RUN Invoke-BashCmd rm -f $Env:BUILDLOGFILE | ||
RUN Invoke-BashCmd rm -f log_no_replay.html | ||
RUN Invoke-BashCmd rm -f log_worst.html | ||
RUN Invoke-BashCmd rm -f orange_status.txt | ||
RUN Invoke-BashCmd rm -f result.txt | ||
RUN Invoke-BashCmd rm -f status.txt | ||
RUN Invoke-BashCmd rm -f commitinfofilename.json | ||
|
||
COPY build.sh build.sh | ||
COPY build_helper.sh build_helper.sh | ||
|
||
RUN Invoke-BashCmd ./build_helper.sh $Env:TARGET $Env:BUILDLOGFILE $Env:MAXTHREADS $Env:BRANCHNAME $Env:FSTARSOURCEVERSION '||' true | ||
|
||
# Remove ssh key. | ||
RUN Invoke-BashCmd rm .ssh/id_rsa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Fstar docs container used to build fstar documentation. | ||
# Docs should always use the latest fstar image available. | ||
FROM fstar-windows-nt:latest | ||
|
||
ARG BUILDLOGFILE | ||
ARG MAXTHREADS | ||
ARG TARGET | ||
ARG BRANCHNAME | ||
ARG FSTARSOURCEVERSION | ||
|
||
# Add ssh key | ||
# We cannot copy directly to the .ssh folder, instead we copy to a temp folder | ||
WORKDIR "everestsshkey" | ||
COPY id_rsa . | ||
WORKDIR ".." | ||
|
||
# Now, using bash we copy the file, set the correct security and remove the previous folder | ||
RUN Invoke-BashCmd '"cd .ssh && cp ../everestsshkey/id_rsa . && chmod 600 id_rsa && rm -rf ../everestsshkey"' | ||
|
||
# Remove extra files. | ||
RUN Invoke-BashCmd rm -f $Env:BUILDLOGFILE | ||
RUN Invoke-BashCmd rm -f log_no_replay.html | ||
RUN Invoke-BashCmd rm -f log_worst.html | ||
RUN Invoke-BashCmd rm -f orange_status.txt | ||
RUN Invoke-BashCmd rm -f result.txt | ||
RUN Invoke-BashCmd rm -f status.txt | ||
RUN Invoke-BashCmd rm -f commitinfofilename.json | ||
|
||
COPY build.sh build.sh | ||
COPY build_helper.sh build_helper.sh | ||
|
||
RUN Invoke-BashCmd ./build_helper.sh $Env:TARGET $Env:BUILDLOGFILE $Env:MAXTHREADS $Env:BRANCHNAME $Env:FSTARSOURCEVERSION '||' true | ||
|
||
# Remove ssh key. | ||
RUN Invoke-BashCmd rm .ssh/id_rsa |