forked from wrf-model/WRF
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
252 additions
and
88 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
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,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
# WRF-CMake (https://github.com/WRF-CMake/wrf). | ||
# Copyright 2018 M. Riechert and D. Meyer. Licensed under the MIT License. | ||
|
||
set -ex | ||
|
||
SCRIPTDIR=$(dirname "$0") | ||
cd $SCRIPTDIR/../.. | ||
|
||
curl -L --retry 3 https://github.com/$WATS_REPO/archive/$WATS_BRANCH.tar.gz | tar xz | ||
mv wats-$WATS_BRANCH wats | ||
conda env update -n base -f wats/environment.yml |
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,33 @@ | ||
#!/usr/bin/env bash | ||
|
||
# WRF-CMake (https://github.com/WRF-CMake/wrf). | ||
# Copyright 2018 M. Riechert and D. Meyer. Licensed under the MIT License. | ||
|
||
set -e | ||
|
||
SCRIPTDIR=$(dirname "$0") | ||
ROOTDIR=$(realpath $SCRIPTDIR/../..) | ||
cd $ROOTDIR | ||
|
||
container=wrf-ci | ||
|
||
# Create container if it doesn't exist | ||
if [ ! "$(docker ps -q -f name=$container)" ]; then | ||
echo "Creating Docker container $container" | ||
set -x | ||
docker run --name $container -t -d -v $ROOTDIR:$ROOTDIR -w $ROOTDIR -e DOCKER=1 $IMAGE | ||
set +x | ||
|
||
echo "Installing sudo inside container" | ||
if [[ $OS_NAME == CentOS ]]; then | ||
docker exec $container sh -c "yum install -y sudo" | ||
else | ||
docker exec $container sh -c "apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::="--force-confold" -y install sudo" | ||
fi | ||
fi | ||
|
||
echo "Running inside container: $@" | ||
host_envs=$(env | cut -f1 -d= | sed 's/^/-e /' | grep -v -e PATH -e HOME) | ||
# Use login shell so that ~/.bash_profile is read. | ||
# use-conda.sh appends to that file to modify the PATH. | ||
docker exec $host_envs $container bash --login -c "$@" |
Oops, something went wrong.