Skip to content

Commit

Permalink
undo changes
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
jerabekjiri committed Nov 27, 2023
1 parent 3fd2c24 commit 994a6ed
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 10 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,10 @@ jobs:
git clone --depth 1 https://github.com/pulp/pulpcore.git
git clone --depth 1 https://github.com/pulp/pulp-openapi-generator.git
- name: Install podman compose
if: matrix.TEST == 'podman' && matrix.os == 'ubuntu-latest'
run: |
sudo apt update
sudo apt install -y httpie podman
sudo pip install podman-compose
podman --version
# - name: Install httpie
# run: |
# sudo apt update
# sudo apt install -y httpie

- name: (Mac) Install docker compose
if: matrix.TEST == 'docker' && matrix.os == 'macos-12'
Expand Down
1 change: 1 addition & 0 deletions base/container_scripts/install_lint_requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ fi
cd "/src/$PROJECT/"

if [[ -f lint_requirements.txt ]]; then
# pip3 install -r lint_requirements.txt
pip install -r lint_requirements.txt
fi
2 changes: 2 additions & 0 deletions base/container_scripts/install_performance_requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ fi
cd "/src/$PROJECT/"

if [[ -f perftest_requirements.txt ]]; then
# pip3 install -r perftest_requirements.txt
pip install -r perftest_requirements.txt
elif [[ -f functest_requirements.txt ]]; then
# pip3 install -r functest_requirements.txt
pip install -r functest_requirements.txt
fi
2 changes: 2 additions & 0 deletions base/container_scripts/install_unit_requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ then
exit 1
fi

# pip3 install git+https://github.com/pulp/pulp-smash.git
pip install git+https://github.com/pulp/pulp-smash.git

cd "/src/$PROJECT/"

if [[ -f unittest_requirements.txt ]]; then
# pip3 install -r unittest_requirements.txt
pip install -r unittest_requirements.txt
fi
3 changes: 3 additions & 0 deletions base/container_scripts/run_python_shell.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pip3 show django-extensions || pip3 install django-extensions

pulpcore-manager shell_plus
2 changes: 1 addition & 1 deletion base/container_scripts/show_urls.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

# this gives us the show_urls django command
pip show django-extensions || pip install django-extensions
pip3 show django-extensions || pip3 install django-extensions

pulpcore-manager show_urls
7 changes: 6 additions & 1 deletion client/oci_env/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@ def shell(args, client):
if args.shell == "bash":
cmd = ["bash"]
elif args.shell == "python":
cmd = ["pulpcore-manager", "shell_plus"]
exit(
client.exec_container_script(
f"run_python_shell.sh",
privileged=args.privileged,
).returncode
)
elif args.shell == "db":
cmd = ["pulpcore-manager", "dbshell"]
else:
Expand Down
2 changes: 1 addition & 1 deletion client/oci_env/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def parse_db_command(subparsers):
'--migrate',
action="store_true",
dest='migrate',
help=('Run migrations after restoring the databse.')
help=('Run migrations after restoring the database.')
)
parser.set_defaults(func=db)

Expand Down

0 comments on commit 994a6ed

Please sign in to comment.