{"id":19874130,"url":"https://github.com/pythoninthegrass/zero_to_prod","last_synced_at":"2025-03-01T01:23:03.166Z","repository":{"id":164042227,"uuid":"639477217","full_name":"pythoninthegrass/zero_to_prod","owner":"pythoninthegrass","description":"zero_to_prod","archived":false,"fork":false,"pushed_at":"2023-05-12T14:16:16.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-11T16:50:22.283Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Just","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pythoninthegrass.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-11T14:27:57.000Z","updated_at":"2023-05-12T14:16:20.000Z","dependencies_parsed_at":"2023-07-13T08:15:22.513Z","dependency_job_id":null,"html_url":"https://github.com/pythoninthegrass/zero_to_prod","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythoninthegrass%2Fzero_to_prod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythoninthegrass%2Fzero_to_prod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythoninthegrass%2Fzero_to_prod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythoninthegrass%2Fzero_to_prod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pythoninthegrass","download_url":"https://codeload.github.com/pythoninthegrass/zero_to_prod/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241301778,"owners_count":19940704,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T16:21:55.100Z","updated_at":"2025-03-01T01:23:03.147Z","avatar_url":"https://github.com/pythoninthegrass.png","language":"Just","readme":"# [Moonswitch - Zero to Prod](https://play.instruqt.com/moonswitch/invite/wymkew67tkza)\n\nTwo-day workshop on Terraform, Kubernetes, and GitOps run by [Jeff French](https://github.com/moonswitch).\n\n## Quickstart\n* Setup git repo\n    ```bash\n    # install gh cli\n    type -p curl \u003e/dev/null || (sudo apt update \u0026\u0026 apt install curl -y)\n    curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \\\n    \u0026\u0026 chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \\\n    \u0026\u0026 echo \"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main\" | tee /etc/apt/sources.list.d/github-cli.list \u003e /dev/null \\\n    \u0026\u0026 apt update \u0026\u0026 apt install gh -y\n\n    # login\n    gh auth login\n    git config pull.rebase true\n    git push --set-upstream origin main\n    git remote add origin https://github.com/pythoninthegrass/zero_to_prod.git\n    git branch -M main\n    git add .\n    git status\n    git commit -m \"init\"\n    git push --set-upstream origin main\n\n    # config\n    git config pull.rebase true\n    git config --global user.email \"4097471+pythoninthegrass@users.noreply.github.com\"\n    git config --global user.name \"pythoninthegrass\"\n    ```\n* Terraform aliases\n  * Add to ~/.bashrc\n    ```bash\n    # append to ~/.bash_aliases\n    cat \u003c\u003c 'EOF' \u003e\u003e ~/.bash_aliases\n    alias k=kubectl\n    alias tf=\"terraform\"\n    alias tfi=\"terraform init\"\n    alias tff=\"terraform fmt\"\n    alias tfv=\"terraform validate\"\n    alias tfp=\"terraform plan\"\n    alias tfa=\"terraform apply\"\n    EOF\n\n    # sed remove 'alias kc=kubectl' (if found)\n    sed -i '/alias kc=kubectl/d' ~/.bash_aliases\n\n    # source new aliases\n    source ~/.bashrc\n    ```\n* Terraform workflow\n    ```bash\n    tf init         # tfi\n    tf fmt\n    tf validate     # tfv\n    tf plan         # tfp\n    tf apply        # tfa\n    ```\n* QOL packages\n    ```bash\n    # apt packages\n    apt update \u0026\u0026 apt install -y jq tree screen tmux\n\n    # k9s\n    curl -sS https://webinstall.dev/k9s | bash\n\n    # append bin to PATH\n    cat \u003c\u003c 'EOF' \u003e\u003e ~/.bashrc\n    export PATH=\"$HOME/.local/bin:$PATH\"\n    ```\n\n## TODO\n* [Issues](https://github.com/pythoninthegrass/zero_to_prod/issues)\n* `Makefile`\n\n## Further Reading\n[moonswitch/workshop-code](https://github.com/moonswitch/workshop-code/tree/main)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythoninthegrass%2Fzero_to_prod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpythoninthegrass%2Fzero_to_prod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythoninthegrass%2Fzero_to_prod/lists"}