developer kit and contributor materials
- Clone Sparta Project
git clone [email protected]:CodeSparta/devkit.git ~/Sparta/devkit && cd ~/Sparta/devkit
- Option A) Set usr/token vars
- set uname & token in vars/git.yml or vars/usrtoken.yml & enable in ./git.yml
./site.yml -e uname=usrbinkat -e token=xxxx
or specify branch
./site.yml -e branch=mvp1 -e uname=usrbinkat -e token=xxxx
cat <<EOF >> ~/.gitconfig
[user]
email = [email protected]
name = usrbinkat
[url "https://usrbinkat:[email protected]"]
insteadOf = https://github.com
EOF
or:
git config --global url.https://usrbinkat:[email protected] https://github.com
Execute Koffer with option:
--volume ${HOME}/.gitconfig:/root/.gitconfig:z
Configure devkit to use the token
Execute ./site.yml
to pull in the entire project for local development
cat <<EOF > ./bundle.sh
#!/bin/bash -x
gh_uname="usrbinkat"
gh_token="0xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx9fd"
gh_fqdn="github.com"
gh_branch="mvp1"
sudo podman run -it --rm \
--privileged --device /dev/fuse \
--volume /tmp/bundle:/root/deploy/bundle:z \
--volume ${HOME}/.gitconfig:/root/.gitconfig:z \
docker.io/codesparta/koffer bundle \
--branch ${gh_branch}\
--service "${gh_uname}:${gh_token}@${gh_fqdn}" \
--repo collector-infra
sudo tar xv -f /tmp/bundle/koffer-bundle.openshift-*.tar -C /root
EOF
chmod +x ./bundle.sh
Then execute
./bundle.sh
Then become root
sudo -i
and continue as usual
ls