This file contains hidden or 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 | |
# --- | |
# Global Variables | |
# --- | |
project_name=$(basename $(pwd)) | |
docker_user=docker_username | |
registry=docker_registry | |
tag=latest | |
docker_image=${registry}/${docker_user}/${project_name}:${tag} |
This file contains hidden or 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 python:3.7-slim-stretch | |
# --- | |
# Build Arguments | |
# --- | |
ARG BUILD_DATE | |
ARG PROJECT_NAME | |
# Avoid questions from debconf | |
ARG DEBIAN_FRONTEND=noninteractive |
This file contains hidden or 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
# --- | |
# Global Variables | |
# --- | |
SHELL:=/bin/bash | |
docker_user = docker_username | |
registry = docker_registry | |
project_name = $(shell basename $(shell pwd)) | |
tag = latest | |
build_date=$(shell date +%Y%m%d-%H:%M:%S) |
This file contains hidden or 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 | |
set -e | |
# If "-e uid={custom/local user id}" flag is not set for "docker run" command, use 9999 as default | |
CURRENT_UID=${uid:-9999} | |
# Notify user about the UID selected | |
echo "Current UID : $CURRENT_UID" | |
# Create user called "docker" with selected UID |
This file contains hidden or 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
# Documentation | |
display_help() { | |
echo "Usage: [variable=value] $0" >&2 | |
echo | |
echo " -m, --my_function run my_function" | |
echo " -h, --help display help" | |
echo | |
# echo some stuff here for the -a or --add-options | |
exit 1 | |
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
%% This BibTeX bibliography file was created using BibDesk. | |
%% https://bibdesk.sourceforge.io/ | |
%% Created for Humberto Stein Shiromoto at 2021-10-17 13:09:18 +1100 | |
%% Saved with string encoding Unicode (UTF-8) | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer