-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
51 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
PROMPT_COMMAND=__prompt_command | ||
|
||
__prompt_command() { | ||
local RC="$?" | ||
RC_MSG="" | ||
if [ "$RC" != 0 ]; then | ||
RC_MSG="\[$(tput sgr0)\]\[\033[38;5;9m\]$RC\[$(tput sgr0)\]" | ||
fi | ||
PS1="\[\033[38;5;56m\]\u\[$(tput sgr0)\]\[\033[38;5;8m\]@\[$(tput sgr0)\]\[\033[38;5;130m\]${CONTAINER_NAME}\[$(tput sgr0)\]: \[$(tput sgr0)\]\[\033[38;5;25m\]\w\[$(tput sgr0)\] \[$(tput sgr0)\]\[\033[38;5;28m\]\$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/')\[$(tput sgr0)\]$RC_MSG\n\\$ \[$(tput sgr0)\]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# replace with your EE | ||
ARG EE_BASE_IMAGE=towerpah.shadowman.dev/shadowmanee:latest | ||
FROM $EE_BASE_IMAGE | ||
|
||
LABEL ansible-execution-environment=true | ||
|
||
USER root | ||
WORKDIR /tmp | ||
|
||
COPY shells /etc/shells | ||
COPY .bashrc /home/runner/.bashrc | ||
|
||
RUN printf "export CONTAINER_NAME=$ansibleee\n" >> /home/runner/.bashrc | ||
|
||
RUN for dir in \ | ||
/home/runner \ | ||
/home/runner/.ansible \ | ||
/home/runner/.ansible/tmp \ | ||
/runner \ | ||
/home/runner \ | ||
/runner/env \ | ||
/runner/inventory \ | ||
/runner/project \ | ||
/runner/artifacts ; \ | ||
do mkdir -m 0775 -p $dir ; chmod -R g+rwx $dir ; chgrp -R root $dir ; done && \ | ||
for file in \ | ||
/home/runner/.ansible/galaxy_token \ | ||
/etc/passwd \ | ||
/etc/group ; \ | ||
do touch $file ; chmod g+rw $file ; chgrp root $file ; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Modifying permissions for Ansible-Lint and bash to work in CodeReady workspaces | ||
Run | ||
|
||
podman build --tag YOURIMAGENAMEANDTAG -f Containerfile | ||
|
||
to modify your existing EE to work in CodeReady workspaces. Then push the image to your container registry. Utilize the devfile.yaml and adjust for your registry and image |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/bin/bash | ||
/usr/bin/bash | ||
/bin/sh | ||
/usr/bin/sh |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.