Show containers (optionally include non-running)
docker ps (-a)
Create container
docker create <image-name> <startup-command>
# 1. Build stage: install dependencies with Poetry into a venv | |
FROM python:3.11 AS builder | |
WORKDIR /app | |
RUN pip install poetry~="1.6.1" | |
COPY pyproject.toml ./pyproject.toml | |
COPY poetry.lock ./poetry.lock | |
RUN python -m venv /venv | |
RUN . /venv/bin/activate && poetry install --no-dev --no-root --verbose | |
# 2. App stage: create final image with code, venv etc |
" VIM PLUG (https://github.com/junegunn/vim-plug) | |
call plug#begin('~/.vim/plugged') | |
" Install easy-align from: https://github.com/junegunn/vim-easy-align | |
Plug 'junegunn/vim-easy-align' | |
" Install vim-jsx-pretty from github | |
Plug 'maxmellon/vim-jsx-pretty' | |
" Install Prettier | |
Plug 'prettier/vim-prettier', { | |
\ 'do': 'npm install', | |
\ 'for': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'graphql', 'markdown', 'vue', 'yaml', 'html'] } |
Connect to remote and install Jupyter on remote
ssh <user_name>@<remote_name>
pip3 install jupyter --user
Run Jupyter notebook on remote
jupyter notebook --no-browser --port=8889
On local, do
ssh -N -f -L localhost:8888:localhost:8889 @
<?xml version="1.0"?> | |
<package > | |
<metadata> | |
<id>Snappy</id> | |
<version>0.1.0</version> | |
<title>Snappy</title> | |
<authors>ChrisM</authors> | |
<owners>ChrisM</owners> | |
<requireLicenseAcceptance>false</requireLicenseAcceptance> | |
<description>Snappy is library which snaps co-ordinates to OSM roads. </description> |