add jupyter notebook (#59)

This commit is contained in:
Muhammad Atif Ali
2023-09-28 21:14:31 +03:00
committed by GitHub
parent d9d646098e
commit 5e805fef02
9 changed files with 108 additions and 13 deletions

View File

@@ -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!"