Dockerfile NGINX
# Start from the latest golang base image
FROM nginx:1.19-alpine
# Expose port 8080 to the outside world
EXPOSE 80
Dockerfile NGINX
# Start from the latest golang base image
FROM nginx:1.19-alpine
# Expose port 8080 to the outside world
EXPOSE 80
Olá,
Queremos te conhecer melhor e para isso te convidamos a realizar o seguinte teste técnico:
Você acabou de começar um novo desafio como Desenvolvedor PHP na empresa Contact List LTDA. E a sua primeira tarefa será desenvolver uma API para gerenciar uma Lista de Contatos.
Os requisitos para a construção desta API são:
go build
./go-docker
OUTPUT: 2019/12/01 09:48:40 Starting Server
Test the application:
curl http://localhost:8080
cat <<EOF | kubectl apply -f -
apiVersion: v1
kind: Secret
metadata:
name: grafana
namespace: istio-system
labels:
app: grafana
type: Opaque
cat <<EOF | kubectl apply -f -
apiVersion: v1
kind: Secret
metadata:
name: kiali
namespace: istio-system
labels:
app: kiali
type: Opaque
cp -p master-config.yaml master-config.yaml.prepatch
oc ex config patch master-config.yaml.prepatch -p "$(cat master-config.patch)" > master-config.yaml
/usr/local/bin/master-restart api
/usr/local/bin/master-restart controllers
admissionConfig:
pluginConfig:
MutatingAdmissionWebhook:
configuration:
apiVersion: apiserver.config.k8s.io/v1alpha1
kubeConfigFile: /dev/null
kind: WebhookAdmission
ValidatingAdmissionWebhook:
configuration:
oc adm policy add-scc-to-user anyuid -z istio-ingress-service-account -n istio-system
oc adm policy add-scc-to-user anyuid -z default -n istio-system
oc adm policy add-scc-to-user anyuid -z prometheus -n istio-system
oc adm policy add-scc-to-user anyuid -z istio-egressgateway-service-account -n istio-system
oc adm policy add-scc-to-user anyuid -z istio-citadel-service-account -n istio-system
oc adm policy add-scc-to-user anyuid -z istio-ingressgateway-service-account -n istio-system
oc adm policy add-scc-to-user anyuid -z istio-cleanup-old-ca-service-account -n istio-system
oc adm policy add-scc-to-user anyuid -z istio-mixer-post-install-account -n istio-system
oc adm policy add-scc-to-user anyuid -z istio-mixer-service-account -n istio-system
for command line users the best option is to use dd
Insert the USB drive and open terminal (Ctrl+Alt+T)
better be a root (sudo -i), don't be afraid believe in yourself
use "fdisk -l" to find the USB device
So in our case its /dev/sdb
Make sure the USB device is unmounted
`umount /dev/sdb1`
Converter a primeira coluna de um arquivo de log, que estava em unixtime, pra tempo human-readable | |
awk '{$1 = strftime("%F %T", $1) ; print ;}' oldfile > newfile |