- Extract Ubuntu release code using
cutto split string andsedto trim text
#!/bin/sh
versioncode=`lsb_release -r | cut -f2 -d':' | sed -e 's/^[[:space:]]*//'`| ## Build this image to create htpasswd | |
| ## | |
| ## docker build -t your-org/htpasswd . | |
| FROM alpine | |
| RUN apk add --update apache2-utils \ | |
| && rm -rf /var/cache/apk/* | |
| ENTRYPOINT ["htpasswd", "-Bbn"] |
Puppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer runs headless by default, but can be configured to run full (non-headless) Chrome or Chromium.
Init sample scrapping project
create_user_for_namespace.sh: Create $namespace-user ServiceAccount with full access to specified namespace and get KUBECONFIGkubeconfig-generator.sh : Generate the KUBECONFIG of an existing sericeaccout + namespaceGIST_URL=https://gist.githubusercontent.com/mikamboo/5e20ea4a0aef8289e40f62844dec7bc8
curl $GIST_URL/raw/bb5ba7e3cc2b1e7be0006f7a2bc3d0f5d73958ec/create_user_for_namespace.sh | bash -s gitlab| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| name: clouder.io | |
| data: | |
| index.html: | | |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> |
| # company/python3-aws docker image | |
| FROM python:3.7-alpine | |
| RUN pip3 --no-cache install awscli awscli-plugin-endpoint | |
| ENTRYPOINT ["aws"] | |
| # docker build -t company/awscli . |
| kind: Secret | |
| apiVersion: v1 | |
| metadata: | |
| name: code-server-secret | |
| namespace: ${NAMESPACE} | |
| stringData: | |
| password: ${PASSWORD} | |
| type: Opaque |
Créer une app Symfony faisant du CRUD avec un dashboard admin et exposant une api RES. On va donc :