Skip to content
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

Update Nginx from 1.14.2 #652

Closed
wants to merge 27 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
5333d41
see if this can still build
dydx Oct 16, 2024
9c8d37c
bump python:2 to python:3
dydx Oct 16, 2024
7c8c6da
just update all python:2 to python:3
dydx Oct 16, 2024
9811799
ok, lets try manually updating packages from within a python3 venv
dydx Oct 16, 2024
0391930
not finding refs to python2.... lets try pip3 to see
dydx Oct 16, 2024
358d56a
try this out
dydx Oct 16, 2024
a221da4
remove refs to pip3, but also update refs to python2
dydx Oct 16, 2024
482991e
what python version is it trying to use here??
dydx Oct 16, 2024
dd94dbd
making a small mess here
dydx Oct 16, 2024
dc96066
revert that last set of changes
dydx Oct 16, 2024
3ad4b6f
trying to understand why python3 is present but it tries to use python2
dydx Oct 16, 2024
0fe350a
add sudo back for apt
dydx Oct 16, 2024
1a5ed13
add sudos back
dydx Oct 16, 2024
c9b363b
try another way of running pip to ensure python3
dydx Oct 16, 2024
7b31a5f
maybe get past /usr/bin/python3: No module named pip
dydx Oct 16, 2024
af4d344
add steps to ensure pip is there
dydx Oct 16, 2024
c0f96e0
lets go back to this
dydx Oct 16, 2024
c1dfdb0
ok, lets remove the new syntax in the config
dydx Oct 16, 2024
a65841f
ok lets just back all the way out of that
dydx Oct 16, 2024
9d009ab
lets see if pip3 is there
dydx Oct 16, 2024
07a651b
lets try this
dydx Oct 16, 2024
95cf45e
manually install pip3
dydx Oct 16, 2024
7904c48
attempt to use new pip?
dydx Oct 16, 2024
c49ffbf
install semver
dydx Oct 16, 2024
83b39b7
add constant
dydx Oct 16, 2024
679f7cb
lets swap for this version of semver
dydx Oct 16, 2024
cd8864d
I think it all finally passes
dydx Oct 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ jobs:
<<: *defaults
steps:
- checkout
- run: sudo apt-get update; sudo apt-get install shunit2
- run: sudo pip install pytest # todo cache these
- run: sudo apt-get update; sudo apt-get install shunit2 python3-pip
- run: sudo pip3 install pytest # todo cache these
- run: sudo make deps # todo cache these
- run: make test

Expand Down Expand Up @@ -150,8 +150,7 @@ jobs:
<<: *defaults
steps:
- checkout
- setup_remote_docker:
version: "20.10.23"
- setup_remote_docker
- run: |
export WORKDIR=`pwd`
export CIRCLE_PROJECT_REPONAME=$PROJECT_NAME
Expand All @@ -171,8 +170,7 @@ jobs:
ECR_REPO: 799720048698.dkr.ecr.us-east-1.amazonaws.com
steps:
- checkout
- setup_remote_docker:
version: "20.10.23"
- setup_remote_docker
- run: |
export WORKDIR=`pwd`
export CIRCLE_PROJECT_REPONAME=$PROJECT_NAME
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:2
FROM python:3

RUN apt-get update && \
apt-get install -y --no-install-recommends \
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.skaffold
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:2
FROM python:3

RUN apt-get update && \
apt-get install -y --no-install-recommends \
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ else
endif

deps:
pip install -r requirements.txt
pip3 install -r requirements.txt

build:
docker build --pull -t install-scripts -f deploy/Dockerfile.prod .
Expand Down Expand Up @@ -113,12 +113,12 @@ shell_composer_linux:
install-scripts-dev \
/bin/bash
test:
python2 -m pytest -v tests
python3 -m pytest -v tests
./test.sh

run:
/dcg --raw > install_scripts/templates/swarm/docker-compose-generate-safe.sh
python2 main.py
python3 main.py

.PHONY: scan
scan: build
Expand Down
4 changes: 2 additions & 2 deletions deploy/Dockerfile.prod
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM golang:1.20 as builder
FROM golang:1.20 AS builder
WORKDIR /docker-compose-generate
COPY ./util/docker-compose-generate /docker-compose-generate
RUN make build

FROM python:2
FROM python:3

COPY --from=builder /docker-compose-generate/dcg /dcg
RUN apt-get update \
Expand Down
2 changes: 1 addition & 1 deletion okteto.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ COPY ./util/docker-compose-generate /docker-compose-generate
RUN make build


FROM python:2
FROM python:3

COPY --from=builder /docker-compose-generate/dcg /dcg
RUN apt-get update && \
Expand Down
30 changes: 23 additions & 7 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
boto3==1.7.25
Flask==0.12.3
mysql-connector==2.1.7
pytest==3.0.6
pytest-mock==1.5.0
PyYAML==5.4
blinker==1.8.2
boto3==1.35.42
botocore==1.35.42
click==8.1.7
constant==0.0.4
Flask==3.0.3
iniconfig==2.0.0
itsdangerous==2.2.0
Jinja2==3.1.4
jmespath==1.0.1
MarkupSafe==3.0.1
mysql-connector==2.2.9
packaging==24.1
pluggy==1.5.0
pytest==8.3.3
pytest-mock==3.14.0
python-dateutil==2.9.0.post0
PyYAML==6.0.2
s3transfer==0.10.3
git+https://github.com/emosbaugh/python-semver@f26d956e2ea13a8159e5629d5b7bf225f8ae5a61#egg=semver
shellescape==3.8.1
uWSGI==2.0.17
six==1.16.0
urllib3==2.2.3
uWSGI==2.0.27
Werkzeug==3.0.4