Assuming a file like .env in the local workspace folder that looks like
FOO=value
BAR=value2Add the following to the VSCode settings.json
| # based on tunnelChecker from | |
| # https://github.com/mrjackyliang/tunnelChecker | |
| # modified to work on Alpine and doesn't require a script in the container | |
| CONTAINER=transmission | |
| # alpine container will always have ash (even if bash installed) | |
| docker exec -i $CONTAINER sh <<'EOF' | |
| PORT_FORWARD=12345 | |
| IP_CHECK=http://ipinfo.io/ip |
| # ./test.sh | |
| 140529043738688:error:20087002:BIO routines:BIO_lookup:system lib:../crypto/bio/b_addr.c:694:Name or service not known | |
| connect:errno=2 | |
| else branch - ignored error - output: foo | |
| command output: | |
| bar | |
| 140510615253056:error:20087002:BIO routines:BIO_lookup:system lib:../crypto/bio/b_addr.c:694:Name or service not known | |
| connect:errno=2 | |
| entered loop - ignored error | |
| bar |
| version: '2.4' | |
| services: | |
| # https://hub.docker.com/r/pihole/pihole/ | |
| pihole: | |
| container_name: pihole | |
| image: pihole/pihole:latest | |
| restart: unless-stopped | |
| environment: | |
| - TZ=America/Los_Angeles | |
| - DNS1=1.1.1.1 |
| # this assumes you've already connected to the target device with | |
| # adb connect 192.168.X.X | |
| # grab all the APKS off the device to local machine | |
| # based on https://stackoverflow.com/a/4033005 | |
| # this works for firetv stick 4k, but didn't work on a slightly older device for some reason | |
| # for i in $(adb shell pm list packages | awk -F':' '{print $2}'); do adb pull "$(adb shell pm path $i | awk -F':' '{print $2}')"; mv base.apk $i.apk 2&> /dev/null ;done | |
| # use -f to grab path along with app and split it out in the loop | |
| # additionally -3 lists only separately installed packages | |
| # adb shell pm list packages -f -3 |
Assuming a file like .env in the local workspace folder that looks like
FOO=value
BAR=value2Add the following to the VSCode settings.json
Spin up the docker-compose stack from https://github.com/Toumash/mlflow-docker that populates a mysql instance (with root password toor)
Inside the container, verify with pip that pip install mlflow installed the latest 1.28 version:
(base) root@4900a8349bf0:/# pip show mlflow
Name: mlflow
Version: 1.28.0
Summary: MLflow: A Platform for ML Development and Productionization
Home-page: https://mlflow.org/