Skip to content

Instantly share code, notes, and snippets.

@guerrerocarlos
Last active February 3, 2025 20:03
Show Gist options
  • Save guerrerocarlos/4e248ef80752884c8833d2dc367a832f to your computer and use it in GitHub Desktop.
Save guerrerocarlos/4e248ef80752884c8833d2dc367a832f to your computer and use it in GitHub Desktop.
sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update
apt-cache policy docker-ce
sudo apt install docker-ce
sudo systemctl status docker
cd /tmp
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
chmod u+x get_helm.sh
./get_helm.sh
cd -
cd /tmp
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x kubectl
sudo mv kubectl /usr/local/bin/
kubectl version --client
cd -
cd /tmp
curl https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh --output anaconda.sh
bash anaconda.sh
cd -
source ~/.bashrc
@guerrerocarlos
Copy link
Author

Did you know there are enterprise versions of the Bitnami catalog? For enhanced secure software supply chain features, unlimited pulls from Docker, LTS support, or application customization, see Bi|
tnami Premium or Tanzu Application Catalog. See https://www.arrow.com/globalecs/na/vendors/bitnami for more information. |
|
** Please be patient while the chart is being deployed ** |
|
PostgreSQL can be accessed via port 5432 on the following DNS names from within your cluster: |
|
postgres-postgresql.inference.svc.cluster.local - Read/Write connection |
|
To get the password for "postgres" run: |
|
export POSTGRES_PASSWORD=$(kubectl get secret --namespace inference postgres-postgresql -o jsonpath="{.data.postgres-password}" | base64 -d) |
|
To connect to your database run the following command: |
|
kubectl run postgres-postgresql-client --rm --tty -i --restart='Never' --namespace inference --image docker.io/bitnami/postgresql:17.2.0-debian-12-r10 --env="PGPASSWORD=$POSTGRES_PASSWORD" \ |
--command -- psql --host postgres-postgresql -U postgres -d postgres -p 5432 |
|
> NOTE: If you access the container using bash, make sure that you execute "/opt/bitnami/scripts/postgresql/entrypoint.sh /bin/bash" in order to avoid the error "psql: local user with ID 1001} |
does not exist" |
|
To connect to your database from outside the cluster execute the following commands: |
|
NOTE: It may take a few minutes for the LoadBalancer IP to be available. |
Watch the status with: 'kubectl get svc --namespace inference -w postgres-postgresql' |
|
export SERVICE_IP=$(kubectl get svc --namespace inference postgres-postgresql --template "{{ range (index .status.loadBalancer.ingress 0) }}{{ . }}{{ end }}") |
PGPASSWORD="$POSTGRES_PASSWORD" psql --host $SERVICE_IP --port 5432 -U postgres -d postgres |
|
WARNING: The configured password will be ignored on new installation in case when previous PostgreSQL release was deleted through the helm command. In that case, old PVC will have an old password, |
and setting it through helm won't take effect. Deleting persistent volumes (PVs) will solve the issue. |
|
WARNING: There are "resources" sections in the chart not set. Using "resourcesPreset" is not recommended for production. For production installations, please set the following values according to y|
our workload needs: |

  • primary.resources |
  • readReplicas.resources

@guerrerocarlos
Copy link
Author

You have chosen to not have conda modify your shell scripts at all.
To activate conda's base environment in your current shell session:

eval "$(/root/anaconda3/bin/conda shell.YOUR_SHELL_NAME hook)"

To install conda's shell functions for easier access, first activate, then:

conda init

If you'd prefer that conda's base environment not be activated on startup,
set the auto_activate_base parameter to false:

conda config --set auto_activate_base false

Thank you for installing Anaconda3!

===========================================================================

Anaconda and JetBrains are working together to bring you Anaconda-powered
environments tightly integrated in the PyCharm IDE.

PyCharm for Anaconda is available at:
https://www.anaconda.com/pycharm

@guerrerocarlos
Copy link
Author

(base) root@ny001:~/ai-core/cookiecutter# make service name=carlos
Makefile:26: warning: overriding recipe for target 'setup'
/root/ai-core/shared/python.mk:48: warning: ignoring old recipe for target 'setup'
conda env create
--prefix ./env
--file environment.yml
WARNING: The conda.compat module is deprecated and will be removed in a future release.
WARNING: The conda.compat module is deprecated and will be removed in a future release.
Collecting package metadata: done
Solving environment: failed

ResolvePackageNotFound:

  • pyyaml=6.0.2 -> libgcc-ng[version='>=11.2.0'] -> __glibc[version='>=2.17']
  • pyyaml=6.0.2 -> python[version='>=3.13,<3.14.0a0'] -> expat[version='>=2.6.3,<3.0a0'] -> libstdcxx-ng[version='>=11.2.0']
  • pyyaml=6.0.2 -> python[version='>=3.13,<3.14.0a0'] -> libmpdec[version='>=4.0.0,<5.0a0']
  • pyyaml=6.0.2 -> python[version='>=3.13,<3.14.0a0'] -> libuuid[version='>=1.41.5,<2.0a0']
  • pyyaml=6.0.2 -> python[version='>=3.13,<3.14.0a0'] -> ncurses[version='>=6.4,<7.0a0']
  • pyyaml=6.0.2 -> python[version='>=3.13,<3.14.0a0'] -> openssl[version='>=3.0.15,<4.0a0']
  • pyyaml=6.0.2 -> python[version='>=3.13,<3.14.0a0'] -> sqlite[version='>=3.45.3,<4.0a0'] -> zlib[version='>=1.2.13,<1.3.0a0,>=1.2.13,<2.0a0']
  • pyyaml=6.0.2 -> python[version='>=3.13,<3.14.0a0'] -> tk[version='>=8.6.14,<8.7.0a0']
  • pyyaml=6.0.2 -> python[version='>=3.13,<3.14.0a0'] -> xz[version='>=5.4.6,<6.0a0']
  • python=3.12.3 -> expat[version='>=2.6.2,<3.0a0'] -> libgcc-ng[version='>=11.2.0'] -> __glibc[version='>=2.17']
  • python=3.12.3 -> expat[version='>=2.6.2,<3.0a0'] -> libstdcxx-ng[version='>=11.2.0']
  • python=3.12.3 -> libuuid[version='>=1.41.5,<2.0a0']
  • python=3.12.3 -> ncurses[version='>=6.4,<7.0a0']
  • python=3.12.3 -> sqlite[version='>=3.45.3,<4.0a0'] -> zlib[version='>=1.2.13,<1.3.0a0,>=1.2.13,<2.0a0']
  • python=3.12.3 -> tk[version='>=8.6.14,<8.7.0a0']
  • python=3.12.3 -> xz[version='>=5.4.6,<6.0a0']

make: *** [Makefile:20: env] Error 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment