Skip to content

Instantly share code, notes, and snippets.

View g1ibby's full-sized avatar
🎯
Focusing

Sergey Varibrus g1ibby

🎯
Focusing
  • Worldwide
View GitHub Profile
@g1ibby
g1ibby / lightsail-compose.sh
Last active December 20, 2018 14:46
Self host docker registry and decision problem docker mac os self sign certificates
#!/bin/bash
#https://container-solutions.com/adding-self-signed-registry-certs-docker-mac/
#https://docs.docker.com/registry/insecure/#use-self-signed-certificates
curl -sSL https://get.docker.com | sh
usermod -aG docker ubuntu
curl -L https://github.com/docker/compose/releases/download/1.23.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
# /etc/systemd/system/docker-compose-registry.service
[Unit]
Description=Docker Compose Registry Service
Requires=docker.service
After=docker.service
[Service]
Type=oneshot
RemainAfterExit=yes
registry:
restart: always
image: registry:2
ports:
- 5000:5000
environment:
REGISTRY_HTTP_TLS_CERTIFICATE: /certs/domain.crt
REGISTRY_HTTP_TLS_KEY: /certs/domain.key
REGISTRY_AUTH: htpasswd
REGISTRY_AUTH_HTPASSWD_PATH: /auth/htpasswd
@g1ibby
g1ibby / README.md
Created February 2, 2016 16:36
Using local packages as composer dependencies

When implementing your project, the need for some module, library, service provider or something else will arise, and sometimes you’ll have to implement it yourself. So, how to do that? The solution to this problem is described here. I like this decision all but speed. Therefore, it was written this script that clones the local repository with the package into a folder of your project vendor.

Installing a Web Developer setup on OS X Mavericks

Install Command Line Tools

This is a requirement for brew in the next step. You can install XCode and then install Command Line Tools through the XCode preferences, or you can install just the Command Line Tools.

Install Command Line Tools

$ xcode-select --install