-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test for fileutility; build docker on ubuntu1804 with binary.
- Loading branch information
Showing
12 changed files
with
92 additions
and
29 deletions.
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
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
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,9 @@ | ||
# syntax=docker/dockerfile:1 | ||
FROM ubuntu:18.04 | ||
|
||
# install app dependencies | ||
RUN apt update && apt install -y wget | ||
RUN wget https://github.com/wulongict/SpectralArchive/releases/download/v1.2.0/Spectroscape_CPU-1.2.0.deb | ||
RUN apt install -y ./Spectroscape_CPU-1.2.0.deb | ||
|
||
|
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,23 @@ | ||
#!/bin/bash | ||
|
||
# create the docker | ||
docker build --no-cache -t spectroscape-ubuntu1804bin . | ||
|
||
# docker run -it spectroscape-ubuntu2004:latest gcc --version | ||
# run spectroscape | ||
docker run -it spectroscape-ubuntu1804bin:latest spectroscape | ||
output=$? | ||
status="compiled successfully;" | ||
if [ $output -eq 0 ]; then | ||
echo "spectroscape run successfully" | ||
# run the docker with bash | ||
echo docker run -it --rm spectroscape-ubuntu1804bin:latest bash | ||
else | ||
status="compiled failed;" | ||
echo "spectroscape run failed" | ||
echo `date` `pwd` $status tested by Long > ../log.txt | ||
fi | ||
|
||
|
||
|
||
|
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
Empty file.
Empty file.
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