add jupyter notebook (#59)
This commit is contained in:
committed by
GitHub
parent
d9d646098e
commit
5e805fef02
10
jfrog/run.sh
10
jfrog/run.sh
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
BOLD='\033[0;1m'
|
||||
echo "$${BOLD}Installing JFrog CLI..."
|
||||
printf "$${BOLD}Installing JFrog CLI..."
|
||||
|
||||
# Install the JFrog CLI.
|
||||
curl -fL https://install-cli.jfrog.io | sudo sh
|
||||
@@ -20,11 +20,11 @@ if [ -z "${REPOSITORY_NPM}" ]; then
|
||||
else
|
||||
echo "📦 Configuring npm..."
|
||||
jf npmc --global --repo-resolve "${JFROG_URL}/artifactory/api/npm/${REPOSITORY_NPM}"
|
||||
cat << EOF > ~/.npmrc
|
||||
cat <<EOF >~/.npmrc
|
||||
email = ${ARTIFACTORY_USERNAME}
|
||||
registry = ${JFROG_URL}/artifactory/api/npm/${REPOSITORY_NPM}
|
||||
EOF
|
||||
jf rt curl /api/npm/auth >> ~/.npmrc
|
||||
jf rt curl /api/npm/auth >>~/.npmrc
|
||||
fi
|
||||
|
||||
# Configure the `pip` to use the Artifactory "python" repository.
|
||||
@@ -33,7 +33,7 @@ if [ -z "${REPOSITORY_PYPI}" ]; then
|
||||
else
|
||||
echo "🐍 Configuring pip..."
|
||||
mkdir -p ~/.pip
|
||||
cat << EOF > ~/.pip/pip.conf
|
||||
cat <<EOF >~/.pip/pip.conf
|
||||
[global]
|
||||
index-url = https://${ARTIFACTORY_USERNAME}:${ARTIFACTORY_ACCESS_TOKEN}@${JFROG_HOST}/artifactory/api/pypi/${REPOSITORY_PYPI}/simple
|
||||
EOF
|
||||
@@ -46,4 +46,4 @@ else
|
||||
echo "🐹 Configuring go..."
|
||||
export GOPROXY="https://${ARTIFACTORY_USERNAME}:${ARTIFACTORY_ACCESS_TOKEN}@${JFROG_HOST}/artifactory/api/go/${REPOSITORY_GO}"
|
||||
fi
|
||||
echo "🥳 Configuration complete!"
|
||||
echo "🥳 Configuration complete!"
|
||||
|
||||
Reference in New Issue
Block a user