How to setup docker behing a HTTP proxy
mkdir /etc/systemd/system/docker.service.d
sudo touch /etc/systemd/system/docker.service.d/http-proxy.conf
Add proxy info
How to setup docker behing a HTTP proxy
mkdir /etc/systemd/system/docker.service.d
sudo touch /etc/systemd/system/docker.service.d/http-proxy.conf
Add proxy info
| [Desktop Entry] | |
| Encoding=UTF-8 | |
| Name=Postman | |
| Exec=postman | |
| Icon=/home/USERNAME/Postman/app/resources/app/assets/icon.png | |
| Terminal=false | |
| Type=Application | |
| Categories=Development; |
| import { h, Component } from 'preact'; | |
| import style from './style'; | |
| const audioContext = new (window.AudioContext || window.webkitAudioContext); | |
| export default class Oscillator extends Component { | |
| play() { | |
| if( this.oscillator ) return; |
| import {Sql} from "../providers/Sql"; | |
| export class ExamplePage { | |
| constructor(private sql: Sql) { | |
| //sql.query(...); | |
| //... | |
| } | |
| } |
| FROM nginx:alpine | |
| # stock verison from php:alpine image | |
| # ensure www-data user exists | |
| RUN set -x \ | |
| && addgroup -g 82 -S www-data \ | |
| && adduser -u 82 -D -S -G www-data www-data | |
| # 82 is the standard uid/gid for "www-data" in Alpine | |
| # http://git.alpinelinux.org/cgit/aports/tree/main/apache2/apache2.pre-install?h=v3.3.2 |
| # most people include something like this. don't. | |
| # check your default nginx.conf, it's already covered in a much better way. | |
| #gzip_disable "MSIE [1-6]\.(?!.*SV1)"; | |
| # compress proxied requests too. | |
| # it doesn't actually matter if the request is proxied, we still want it compressed. | |
| gzip_proxied any; | |
| # a pretty comprehensive list of content mime types that we want to compress | |
| # there's a lot of repetition here because different applications might use different |
| #!groovy | |
| # Best of Jenkinsfile | |
| # `Jenkinsfile` is a groovy script DSL for defining CI/CD workflows for Jenkins | |
| node { | |
| } |
Dockerfile that is based on your production image and
simply install xdebug into it. Exemple:FROM php:5
RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
Deploy key is a SSH key set in your repo to grant client read-only (as well as r/w, if you want) access to your repo.
As the name says, its primary function is to be used in the deploy process in replace of username/password, where only read access is needed. Therefore keep the repo safe from the attack, in case the server side is fallen.