Please go to Enable Docker Remote API with TLS client verification.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
script=`basename "$0"` | |
if [ $# -gt 0 ] && [ "$1" = "-e" ]; then | |
e="-e" | |
fi | |
echo "Removing old Postman tarballs" | |
rm -f $(ls Postman*.tar.gz) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:10 | |
WORKDIR /usr/src/app | |
RUN apt-get update && apt-get install -y fish | |
COPY package*.json ./ | |
COPY . . | |
RUN npm install | |
RUN npm install -g nodemon | |
EXPOSE 8080/tcp | |
CMD ["npm","start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM gmacario/build-yocto | |
RUN sudo apt-get update | |
RUN sudo apt-get upgrade -y | |
RUN sudo apt-get install -y nano vim | |
RUN wget ftp://ftp.phytec.de/pub/Software/Linux/Yocto/Tools/phyLinux | |
RUN chmod a+x phyLinux | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import argparse | |
parser = argparse.ArgumentParser(description='Rename files to its symlink') | |
parser.add_argument('--dir',default=None, type=str) | |
parser.add_argument('--file', default=None ,type=str) | |
parser.add_argument('--files', default=None ,nargs='*') | |
args = parser.parse_args() | |
runForDir = False | |
runForFile = False | |
runForMultipleFiles = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM gmacario/build-yocto | |
RUN mkdir yocto | |
ADD volume /home/build/yocto | |
RUN sudo apt-get update | |
RUN sudo apt-get install -y nano vim | |
RUN wget ftp://ftp.phytec.de/pub/Software/Linux/Yocto/Tools/phyLinux | |
RUN chmod a+x phyLinux | |
RUN sudo chown -R build:build yocto | |
RUN sudo chmod 777 yocto | |
RUN ls -la /home/build |
# raspbian stretch lite on ubuntu
### You can write the raspbian image onto the sd card,
# boot the pi so it expands the fs, then plug back to your laptop/desktop
# and chroot to it with my script
# https://gist.github.com/htruong/7df502fb60268eeee5bca21ef3e436eb
# sudo ./chroot-to-pi.sh /dev/sdb
# I found it to be much less of a pain in the ass and more reliable
# than doing the kpartx thing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script allows you to chroot ("work on") | |
# the raspbian sd card as if it's the raspberry pi | |
# on your Ubuntu desktop/laptop | |
# just much faster and more convenient | |
# credits: https://gist.github.com/jkullick/9b02c2061fbdf4a6c4e8a78f1312a689 | |
# make sure you have issued |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ "$1" ]; then | |
sudo kpartx -v -a $1 | |
loop_device=`losetup --list | grep "2021-02-02-raspbian-lite.img" | cut -d ' ' -f1 | cut -d'/' -f3` | |
mapper_loop_device="/dev/mapper/${loop_device}p" | |
echo "Mapper device => ${mapper_loop_device}" | |
echo "Mounting to => `ls /mnt`" | |
sudo bash chroot-to-pi.sh $mapper_loop_device | |
sudo kpartx -d $1 | |
else | |
echo "Please Provide img file" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#sudo bash expand-pi-image.sh <img-file> | |
#sudo setup-chroot.sh <img-file> | |
#run changes and type exit | |
if [ "$1" ]; then | |
real_file_path=`realpath "${1}"` | |
echo "Img File: ${real_file_path}" | |
dd if=/dev/zero bs=1M count=1024 >> $real_file_path | |
sudo kpartx -v -a $real_file_path | |
loop_device=`losetup --list | grep "${real_file_path}" | cut -d ' ' -f1 | cut -d'/' -f3` | |
echo "Loop Device => /dev/${loop_device}" |
OlderNewer