github – Free git repository hosting that allows large data usage?

I’ve got a few repositories that are pushing 5-6 GB, which is more than Github allows (even with a pro account), and Gitlab allows 10GB per repository but the hook always hangs up if a single push contains more than a few GB. Are there any websites out there that can handle higher bandwidth?

docker – Permission Denied on shell script execution – GitHub Actions

I am trying to deploy my Elastic Beanstalk Application using GitHub Actions (for CD purposes). Before running the job responsible for deployment, I am building and pushing docker images required for my app to work on DockerHub.

The problem I am facing is that I am having a Permission Denied error after building and running the image from GitHub ( GitHub Actions YAML file ) that I am not having when I am building and running the images locally.

Here is how my GitHub Actions yml file, Dockerfile and sh file look like:

# .github/workflows/deploy-to-staging.yml
name: Deploy to Staging

on:
  push:
    branches: ( master )

jobs:
  deploy-to-staging:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      # Login to DockerHub
      - name: Docker Login
        uses: docker/login-action@v1.8.0
        with:
          username: ${{secrets.DOCKERHUB_USERNAME}}
          password: ${{secrets.DOCKERHUB_TOKEN}}
          logout: true
      # build, tag and push Nginx image to DockerHub
      - name: Build nginx image
        run: docker build -t repo/nginx-staging -f docker/nginx/staging/Dockerfile .
      - name: Tag Image
        run: docker tag repo/nginx-staging repo/nginx-staging:latest
      - name: Push to dockerhub
        run: docker push repo/nginx-staging:latest
      # build, tag and push Backend image to DockerHub
      - name: grant permissions to shell script
        run: chmod +x ./docker/backend/staging/wsgi-entrypoint.sh
      - name: Build Backend image
        run: docker build -t repo/backend-staging -f docker/backend/staging/Dockerfile .
      - name: Tag Image
        run: docker tag repo/backend-staging repo/backend-staging:latest
      - name: Push to dockerhub
        run: docker push repo/backend-staging:latest
      # Move staging Dockerrun.aws.json at root location
      - name: Move Dockerrun file to root
        run: mv aws/staging/Dockerrun.aws.json Dockerrun.aws.json
      - name: Generate deployment package
        run: zip deploy-staging.zip Dockerrun.aws.json
      # Deploy to EB
      - name: Deploy to EB
        uses: einaregilsson/beanstalk-deploy@v10
        with:
          aws_access_key: ${{ secrets.AWS_ACCESS_KEY }}
          aws_secret_key: ${{ secrets.AWS_ACCESS_SECRET_KEY }}
          application_name: rrw-webapp
          environment_name: staging-env
          region: eu-west-3
          version_label: ${{ github.run_number }}
          version_description: ${{ github.run_number }}
          deployment_package: deploy-staging.zip
      - name: Move Dockerrun file back to its original location
        run: mv Dockerrun.aws.json aws/staging/

Here is my Dockerfile:

FROM python:3.7.7

WORKDIR /app
ADD ./backend/requirements.txt /app/backend/


RUN pip install --upgrade pip
RUN pip install gunicorn
RUN pip install -r backend/requirements.txt

ADD ./docker /app/docker
ADD ./backend /app/backend

CMD ("/bin/bash","-c","chmod +x /app/docker/backend/staging/wsgi-entrypoint.sh && /app/docker/backend/staging/wsgi-entrypoint.sh")

And finally my sh file wsgi-entrypoint.sh :

#!/bin/bash

until cd /app/backend
do
    echo "Waiting for server volume..."
done

until ./manage.py migrate
do
    echo "Waiting for db to be ready..."
    sleep 2
done

./manage.py collectstatic --noinput

gunicorn RRWProject.wsgi --bind 0.0.0.0:8000 --workers 4 --threads 4

The Permission Denied error happens when docker tries to execute the .manage.py migrate command.

What I have tried so far:

  • chmod my file locally before pushing to github with :
> chmod +x docker/backend/staging/wsgi-entrypoint.sh
  • chmod my file from the github actions file as it is shown above
  • run git update-index before committing my files:
git update-index --chmod=+x docker/backend/staging/wsgi-entrypoint.sh
  • simply running the following from my dockerfile:
CMD ("sh","docker/backend/staging/wsgi-entrypoint.sh")

Is there anything I missed out to make it work ?

github – Bonobo Git Server with Active Directory Problem Subdomain User

I have Bonobo Git server (6.5.0) set up with Active Directory membership service (Running on Win 2019). All works fine. But I have a problem with our users in subdomain and azure. All user in subdomain connected to azure can login in Bonobo Git Server. But all this user are not listet in the userlist in Bonobo. Thy cant use the Github Server. Bonobo get no info for this users and I cant find this in Bonobo. But login works. When i create a new user without azure, it works fine.
Have any the same problem? How can I solve it?

Regards

WordPress GitHub Workflow – WordPress Development Stack Exchange

I currently have a WordPress GitHub workflow that is the following:

  • Development is done locally
  • -> committed to the GitHub repository
  • -> is pushed to the dev WP site/admin panel
  • -> QA’d
  • -> merged with the Production Github branch to push live to the Prod WP site/admin panel.

The client would like to be able to create changes in the WP admin panel (adding new plugins) then commit those to the rest of the GitHub repository so that when I commit changes his work isn’t overwritten.

Is this possible to do? And is there a tool that will allow the WordPress admin panel to commit changes to the GitHub repository?

[BS] GitHub Dev Tools | Nulled Scripts Download

This add-on adds commands to create a convenient project structure on GitHub. However, you can continue development in standard directories, since the add-on automatically creates a symlink.

More detailed information in the FAQ.

Project structure example: 021-projects/XF2-ScheduledPosting

.

VSCode GitHub Error – Stack Overflow en español

Ya tengo mi cuenta de GitHub logueada a VSCode, y por más que intento no me funciona el botón de Initialize Repository y si le doy a Publish to Github me crea un repositorio vacio en Github y ya. He tratado con comandos en el terminal pero saltan errores y no hay manera de hacer push, solo me pasa con VSCode con IntellJ y NetBeans no
introducir la descripción de la imagen aquí

git push – Github Actions http request

Me gustaría saber si hay alguna manera de hacer un post request mediante github actions una vez q se suben los cambios a mí repositorio. La idea es ejecutar un git pull origin main para que mí código en producción tomé los cambios sin tener q correr el comando manualmente, tengo un post preparado que ya ejecuta este comando, solo tengo q hacer el post y me encantaría saber si se puede hacer por github actions

web development – How would one go about connecting API routes from one GitHub repository to another?

This may be a basic question, but I’m having some difficulty finding an answer online.

My project is a MERN application that draws from an existing open-source API. This API utilizes a database that I’ve already integrated with my own, which I plan to make changes to. So, we can’t just use the existing hosting the API has and make those calls. For reference, the API is this one: https://github.com/5e-bits/5e-srd-api.

I’ve forked it, so right now I have the GitHub repository of the API and the GitHub repository of the application in the same organization. Is there any way for me to externally call this API from my existing project, or would that require dedicated web hosting? Should I just put the API files in my existing project? It has a lot of bulk, so I’m a little worried about cluttering and having to redo my project’s structure to match the API’s.

For a more concrete example: say I wanted to fetch the /classes route in the API repo from my application repo. How would I go about doing so without changing the structure of either?

javascript – Problemas para deployar con github pages

ultimamente estuve haciendo un par de proyectos para sumar a mi cv y con todos no tuve ningun problema para subirlo a Github pages, sin embargo por algun motivo el que quiero subir ahora me termina quedando pagina en blanco y no logro encontrar donde estoy fallando.

Si alguno me puede dar una mano se agradeceria.

{
  "name": "react-responsive",
  "version": "0.1.0",
  "private": true,
  "homepage": "https://ltrucco.github.io/WebResponsive/",
  "dependencies": {
    "@testing-library/jest-dom": "^5.11.4",
    "@testing-library/react": "^11.1.0",
    "@testing-library/user-event": "^12.1.10",
    "gh-pages": "^3.1.0",
    "react": "^17.0.1",
    "react-dom": "^17.0.1",
    "react-icons": "^4.1.0",
    "react-router-dom": "^5.2.0",
    "react-scripts": "4.0.1",
    "react-scroll": "^1.8.1",
    "styled-components": "^5.2.1",
    "web-vitals": "^0.2.4"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject",
    "predeploy": "npm run build",
    "deploy": "gh-pages -d build"
  },
  "eslintConfig": {
    "extends": [
      "react-app",
      "react-app/jest"
    ]
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  }
}

Ese es mi package.json, y este es el repo
https://github.com/ltrucco/WebResponsive/tree/master

Basicamente estoy corriendo “yarn deploy”, y pusheando los cambios a git pero por algun motivo la pagina
sigue en blanco https://ltrucco.github.io/WebResponsive/

EDIT: Tambien probe usando como homepage https://ltrucco.github.io/WebResponsive sin la barra del final.

github – Como ignoro los archivos de una carpeta en git.ignore

No estoy seguro de si hay alguna manera de hacer que git acepte carpetas vacías, que es lo que intentas hacer tú aquí… Al menos hasta donde yo he visto no se puede.

Dicho eso, hay una solución fácil: remueve esta línea de tu .gitignore: api/Resources/Images/* y CREA un nuevo .gitignore dentro de esa carpeta con el siguiente contenido:

*
!.gitignore

Es decir, en la primera línea le pides que ignore TODO el contenido de la carpeta y en la segunda línea hacemos una excepción para el propio .gitignore, puesto que sin ella sería ignorado también! Con esto tendrás una carpeta que, técnicamente, está vacía.