# LXC circa 2012: manual, fragile, enjoyed by nobody
-weight: 600;">sudo lxc-create -t ubuntu -n myapp
-weight: 600;">sudo lxc--weight: 500;">start -n myapp -d
-weight: 600;">sudo lxc-attach -n myapp -- -weight: 500;">apt-get -weight: 500;">update
-weight: 600;">sudo lxc-attach -n myapp -- -weight: 500;">apt-get -weight: 500;">install -y python3 python3--weight: 500;">pip
-weight: 600;">sudo lxc-attach -n myapp -- -weight: 500;">pip -weight: 500;">install -r /mnt/shared/requirements.txt
# now configure networking by hand
# now configure storage by hand
# now pray it works the same way on the other server
# LXC circa 2012: manual, fragile, enjoyed by nobody
-weight: 600;">sudo lxc-create -t ubuntu -n myapp
-weight: 600;">sudo lxc--weight: 500;">start -n myapp -d
-weight: 600;">sudo lxc-attach -n myapp -- -weight: 500;">apt-get -weight: 500;">update
-weight: 600;">sudo lxc-attach -n myapp -- -weight: 500;">apt-get -weight: 500;">install -y python3 python3--weight: 500;">pip
-weight: 600;">sudo lxc-attach -n myapp -- -weight: 500;">pip -weight: 500;">install -r /mnt/shared/requirements.txt
# now configure networking by hand
# now configure storage by hand
# now pray it works the same way on the other server
# LXC circa 2012: manual, fragile, enjoyed by nobody
-weight: 600;">sudo lxc-create -t ubuntu -n myapp
-weight: 600;">sudo lxc--weight: 500;">start -n myapp -d
-weight: 600;">sudo lxc-attach -n myapp -- -weight: 500;">apt-get -weight: 500;">update
-weight: 600;">sudo lxc-attach -n myapp -- -weight: 500;">apt-get -weight: 500;">install -y python3 python3--weight: 500;">pip
-weight: 600;">sudo lxc-attach -n myapp -- -weight: 500;">pip -weight: 500;">install -r /mnt/shared/requirements.txt
# now configure networking by hand
# now configure storage by hand
# now pray it works the same way on the other server
-weight: 500;">docker build -t myapp .
-weight: 500;">docker run -p 5000:5000 myapp
-weight: 500;">docker build -t myapp .
-weight: 500;">docker run -p 5000:5000 myapp
-weight: 500;">docker build -t myapp .
-weight: 500;">docker run -p 5000:5000 myapp
FROM python:3.9-slim WORKDIR /app
COPY requirements.txt .
RUN -weight: 500;">pip -weight: 500;">install --no-cache-dir -r requirements.txt COPY . .
EXPOSE 5000
CMD ["python", "app.py"]
FROM python:3.9-slim WORKDIR /app
COPY requirements.txt .
RUN -weight: 500;">pip -weight: 500;">install --no-cache-dir -r requirements.txt COPY . .
EXPOSE 5000
CMD ["python", "app.py"]
FROM python:3.9-slim WORKDIR /app
COPY requirements.txt .
RUN -weight: 500;">pip -weight: 500;">install --no-cache-dir -r requirements.txt COPY . .
EXPOSE 5000
CMD ["python", "app.py"]
-weight: 500;">docker push myregistry/myapp:v1.2
-weight: 500;">docker pull myregistry/myapp:v1.2
-weight: 500;">docker push myregistry/myapp:v1.2
-weight: 500;">docker pull myregistry/myapp:v1.2
-weight: 500;">docker push myregistry/myapp:v1.2
-weight: 500;">docker pull myregistry/myapp:v1.2
# Docker Swarm: the simpler bet that lost
-weight: 500;">docker swarm init
-weight: 500;">docker -weight: 500;">service create --replicas 3 --name web myapp:latest # Kubernetes: the complex bet that won
# (this deployment.yaml is 30+ lines, but you get an ecosystem)
-weight: 500;">kubectl apply -f deployment.yaml
-weight: 500;">kubectl get pods
# Docker Swarm: the simpler bet that lost
-weight: 500;">docker swarm init
-weight: 500;">docker -weight: 500;">service create --replicas 3 --name web myapp:latest # Kubernetes: the complex bet that won
# (this deployment.yaml is 30+ lines, but you get an ecosystem)
-weight: 500;">kubectl apply -f deployment.yaml
-weight: 500;">kubectl get pods
# Docker Swarm: the simpler bet that lost
-weight: 500;">docker swarm init
-weight: 500;">docker -weight: 500;">service create --replicas 3 --name web myapp:latest # Kubernetes: the complex bet that won
# (this deployment.yaml is 30+ lines, but you get an ecosystem)
-weight: 500;">kubectl apply -f deployment.yaml
-weight: 500;">kubectl get pods - My project: Hermes IDE | GitHub
- Me: gabrielanhaia