How to switch over from SD-card to USB-attached device (USB thumbstick, USB enclosed SSD or HDD, etc.) to have more durable storage option.
-
Connect USB device to your RPI
-
Make sure USB device visible by the system
AUTHURL="https://gitlab.de" | |
REGISTRY_NAME="https://reg.gitlab.de" | |
CONTENT_TYPE="application/vnd.docker.distribution.manifest.v2+json" | |
REPOSITORY="myrepo/ts1" | |
TAG_OLD="test" | |
TAG_NEW="latest" | |
USERNAME="test-tag-latest" | |
PASSWORD="sdfsdfdsfsdfsdf" |
version: '3.2' | |
services: | |
ofelia: | |
image: mcuadros/ofelia:latest | |
command: daemon --docker | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock:ro |
UPDATE / SOLUTION FOR ANYONE HAVING THIS PROBLEM | |
1.) Make sure your NFS mount in /etc/fstab does NOT have the "bg" background field | |
and | |
2.) Create: /etc/systemd/system/docker.service.d/override.conf | |
with: | |
[Unit] | |
After=nfs.mount | |
and then | |
systemctl daemon-reload |
#!/bin/bash | |
REPRODIR=/opt/app_build_repo | |
TARGET=/srv/www/htdocs/versions | |
FOUND_NEW=false | |
msg="" | |
cd $REPRODIR #change to git repo |
// In JavaScript, constructors can only be synchronous right now. This makes sense | |
// from the point of view that a constructor is a function that returns a newly | |
// initialized object. | |
// | |
// On the other hand, it would sometimes be very handy, if one could have async | |
// constructors, e.g. when a class represents a database connection, and it is | |
// desired to establish the connection when you create a new instance. | |
// | |
// I know that there have been discussions on this on StackOverflow & co., but | |
// the so-far mentioned counter arguments (such as: doesn't work as expected |
apt install curl | |
curl https://getcaddy.com | bash -s cors,expires,filemanager,git,hugo,ipfilter,jsonp,jwt,locale,mailout,minify,multipass,prometheus,ratelimit,realip,search,upload | |
chown root:root /usr/local/bin/caddy | |
chmod 755 /usr/local/bin/caddy | |
setcap 'cap_net_bind_service=+ep' /usr/local/bin/caddy | |
mkdir /etc/caddy | |
chown -R root:www-data /etc/caddy | |
mkdir /etc/ssl/caddy | |
chown -R www-data:root /etc/ssl/caddy | |
chmod 0770 /etc/ssl/caddy |
I hereby claim:
To claim this, I am signing this object:
<?php | |
/* | |
* | |
* ____ _ _ __ __ _ __ __ ____ | |
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \ | |
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) | | |
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/ | |
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_| | |
* |