I hereby claim:
- I am mirlisboa on github.
- I am mirlisboa (https://keybase.io/mirlisboa) on keybase.
- I have a public key ASBGvjdScACxoUqAR6I6Oqst-KS3q9fBGy_tgwKBKtVqhAo
To claim this, I am signing this object:
#!/bin/bash | |
# Adicione um novo remote; pode chamá-lo de "upstream": | |
git remote add upstream https://github.com/usuario/projeto.git | |
# Obtenha todos os branches deste novo remote, | |
# como o upstream/master por exemplo: | |
git fetch upstream | |
# ou se quiser pegar as tags |
I hereby claim:
To claim this, I am signing this object:
FROM ubuntu:latest | |
MAINTAINER Colby Swandale <[email protected]> | |
# update apt cache and install dependencies | |
RUN apt-get update && apt-get install git curl build-essential libssl-dev libreadline-dev zlib1g-dev sqlite3 libsqlite3-dev -y | |
# add app user | |
RUN adduser --gecos '' --disabled-password app | |
# set user to app | |
USER app | |
# set rbenv, ruby-build bin paths | |
ENV HOME /home/app |
<?php | |
namespace App\Http\Resources; | |
use App\Http\Handlers\Admin\UploadMediaFile; | |
use App\Http\Resources\Support\ResourceLink; | |
use App\Policies\EventPolicy; | |
use Illuminate\Support\Facades\Auth; | |
class EventResource extends ItemResource |
<?php | |
// This can be found in the Symfony\Component\HttpFoundation\Response class | |
const HTTP_CONTINUE = 100; | |
const HTTP_SWITCHING_PROTOCOLS = 101; | |
const HTTP_PROCESSING = 102; // RFC2518 | |
const HTTP_OK = 200; | |
const HTTP_CREATED = 201; | |
const HTTP_ACCEPTED = 202; |
Note: There are better ways to do this by now. Check https://docs.docker.com/develop/develop-images/build_enhancements/#new-docker-build-secret-information for details
In order to access packages in private github repositories a Dockerfile might contain statements like this:
RUN git config --global url."https://${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
RUN npm install --ignore-scripts --quiet && npm cache clean --force
RUN git config --global --unset url."https://${GITHUB_TOKEN}@github.com/".insteadOf
Sometimes, we have to access git repositories over SSL and the server only provides a self-signed certificate 🙈. Although there are ways to increase the trust level for the self-signed certificate (https://confluence.atlassian.com/fishkb/unable-to-clone-git-repository-due-to-self-signed-certificate-376838977.html, https://confluence.atlassian.com/bitbucketserverkb/resolving-ssl-self-signed-certificate-errors-806029899.html), my recommendation is to just ignore SSL verification alltogether.
Prepend GIT_SSL_NO_VERIFY=true
before every git command run to skip SSL verification. This is particularly useful if you haven't checked out the repository yet.
Run git config http.sslVerify false
to disable SSL verification if you're working with a checked out repository already.