-
Notifications
You must be signed in to change notification settings - Fork 11
Adding mini CLI script for cloning repos #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
5e7c474
0ba09e0
1af7e65
871b268
21d17af
3a00dd2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,7 +24,7 @@ LABEL maintainer="Operate First" \ | |
| version.helm="${HELM_VERSION}" \ | ||
| version.helm_secrets="${HELM_SECRETS_VERSION}" \ | ||
| version.ksops="${KSOPS_VERSION}" \ | ||
| version.sops="${SOPS_VERSION}" | ||
| version.sops="${SOPS_VERSION}" \ | ||
|
|
||
| # Copy ksops and kustomize from builder | ||
| COPY --from=ksops-builder /go/bin/kustomize /usr/local/bin/kustomize | ||
|
|
@@ -45,7 +45,7 @@ RUN \ | |
| # Install yq | ||
| curl -o /usr/local/bin/yq -L https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64 && \ | ||
| chmod +x /usr/local/bin/yq | ||
|
|
||
|
||
| COPY scripts/* /usr/local/bin/ | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @quaid by adding it to the
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ha! Yes, indeed, it's right there. I'll blame my lack of familiarity with Dockerfiles for missing the obvious., :) |
||
|
|
||
| CMD /bin/bash | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| #!/bin/bash | ||
| # Script to clone from github.com/operate-first/ and setup the environment | ||
| # (C) 2021 Karsten Wade <[email protected]> <[email protected] | ||
| # | ||
| # This program is free software: you can redistribute it and/or modify | ||
| # it under the terms of the GNU General Public License as published by | ||
| # the Free Software Foundation, either version 3 of the License, or | ||
| # (at your option) any later version. | ||
| # | ||
| # This program is distributed in the hope that it will be useful, | ||
| # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| # GNU General Public License for more details. | ||
| # | ||
| # You should have received a copy of the GNU General Public License | ||
| # along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
| # | ||
| # This barebones script is not very clever, because it is just trying to | ||
| # clone a repo and set it up according to Operate First community practices: | ||
| # https://URL_FOR_COMMUNITY_PRACTICES_NEEDED | ||
| # | ||
| # Use: | ||
| # ./o1-tools/bin/o1-clone repo-name | ||
| # | ||
| # For example: | ||
| # ./o1-tools/bin/o1-clone community-handbook | ||
| # | ||
| # | ||
| # Let's presume you want something from the /operate-first/ org and take in | ||
| # the first bash variable as the repo name: | ||
| git clone [email protected]:operate-first/$1.git | ||
| # Enter the project to prepare the environment | ||
| cd $1 | ||
| # Install pre-commit hooks and whatever else it does | ||
| pre-commit install | ||
| # | ||
| # That's it for now, what other environment activities could we do here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you remove this new slash
\There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Finger slip I'm sure :) fixed