First step install dependencies.
sudo apt-get install git python-setuptools python-pip python-dev \
&& sudo apt-get install python3-pip python3-dev virtualenv
then install local envirement of Django project.
version: '4.5' | |
services: | |
# GITLAB | |
gitlab-web: | |
image: 'gitlab/gitlab-ce:latest' | |
restart: always | |
container_name: gitlab-web | |
hostname: '192.168.0.14' | |
environment: |
version: '3.7' | |
networks: | |
traefik: | |
external: true | |
services: | |
pink: |
version: '3' | |
services: | |
traefik: | |
restart: unless-stopped | |
image: traefik:v2.0.2 | |
ports: | |
- "80:80" | |
- "443:443" | |
labels: | |
- "traefik.http.services.traefik.loadbalancer.server.port=8080" |
vite.config.ts | |
src/vite-env.d.ts | |
dist |
# $ brew install pyenv #pay attention to caveats ($ brew info pyenv) | |
# $ brew install pyenv-virtualenv | |
# this goes into .zshrc | |
export PYENV_ROOT=/usr/local/var/pyenv | |
if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi | |
if which pyenv-virtualenv-init > /dev/null; then eval "$(pyenv virtualenv-init -)"; fi |
#!/usr/bin/env python3 | |
import logging | |
import sqlite3 | |
import sys | |
import re | |
from math import ceil | |
from os.path import realpath, isfile | |
import mysql.connector | |
from mysql.connector import errorcode |
These instructions include running a local registry accessible from Kubernetes as well as from the
host development machine at registry.dev.svc.cluster.local:5000
.
registry:2
container from Docker, listening on port 5000
, and persisting images in the ~/.registry/storage
directory.