-
Notifications
You must be signed in to change notification settings - Fork 47
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
One Python to rule them all #143
Closed
Closed
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
4220004
Rewrite monasca-agent to use monasca/python
be004d1
Use monasca/python for monasca-api
11d7298
Make monascaclient use monasca/python
6c79b72
Add custom apk_install function for agent
61a7098
Migrate remaining images to monasca/python
96e18e8
Use monasca/client as base for monasca/alarms.
eaabfd2
Use latest monasca/python build
f89c3b6
Address base monasca/agent-base in child build.yml
bf3ca34
Bump monasca/python base image
ad26718
Ensure Python version is string
f31aafc
Use master constraints for monasca-api
7508bc7
Removed pike from client
db3aee0
Ensure master branch for constraints in client
4d4390b
Ensuring proper constraints version
356410a
Fix launch path for monasca-persister
0eb7cf5
Add missing Jinja2 installation
0938f20
Change monasca-alarms to latest
930b9d4
Change versions of base image
d489ed3
Removed unused build-dep
ea90ae0
Update the paths to agent's binaries
dad34d9
Revert agent's binaries path
b710eaa
Merge branch 'master' into python_for_all
kornicameister File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 @@ | ||
install_apk_deps() { | ||
apk add --no-cache libxml2 py2-psutil | ||
apk add --no-cache --virtual build-dep git make g++ linux-headers libxml2-dev libxslt-dev | ||
} |
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 |
---|---|---|
|
@@ -3,3 +3,5 @@ variants: | |
- tag: master | ||
aliases: | ||
- :master-{date}-{time} | ||
args: | ||
TIMESTAMP_SLUG: 20170809-155207 |
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 |
---|---|---|
|
@@ -3,3 +3,5 @@ variants: | |
- tag: master | ||
aliases: | ||
- :master-{date}-{time} | ||
args: | ||
MON_AGENT_BASE_VERSION: master-20170901-210328 |
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 |
---|---|---|
|
@@ -3,3 +3,5 @@ variants: | |
- tag: master | ||
aliases: | ||
- :master-{date}-{time} | ||
args: | ||
MON_AGENT_BASE_VERSION: master-20170901-210328 |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
repository: monasca/alarms | ||
variants: | ||
- tag: 1.1.1 | ||
- tag: 1.1.2 | ||
aliases: | ||
- :latest | ||
- tag: 1.1.1 | ||
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
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 @@ | ||
install_apk_deps() { | ||
apk add --no-cache curl mysql-client | ||
apk add --no-cache --virtual build-dep git make g++ linux-headers | ||
} |
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 |
---|---|---|
@@ -1,28 +1,17 @@ | ||
FROM alpine:3.5 | ||
ARG PYTHON_VERSION | ||
ARG TIMESTAMP_SLUG | ||
FROM monasca/python:${PYTHON_VERSION}-${TIMESTAMP_SLUG} | ||
|
||
ARG CLIENT_REPO=https://git.openstack.org/openstack/python-monascaclient | ||
ARG CLIENT_BRANCH="master" | ||
ARG UPPER_CONSTRAINTS=https://raw.githubusercontent.com/openstack/requirements/master/upper-constraints.txt | ||
ARG CLIENT_BRANCH=master | ||
ARG CONSTRAINTS_BRANCH=master | ||
|
||
# To force a rebuild, pass --build-arg REBUILD="$(DATE)" when running | ||
# `docker build` | ||
ARG REBUILD=1 | ||
|
||
RUN set -x && \ | ||
apk add --no-cache python py2-pip git && \ | ||
apk add --no-cache --virtual build-dep \ | ||
git python-dev make g++ linux-headers libxml2-dev libxslt-dev && \ | ||
mkdir /python-monascaclient && cd /python-monascaclient && \ | ||
git init && \ | ||
git remote add origin $CLIENT_REPO && \ | ||
git fetch origin $CLIENT_BRANCH && \ | ||
git reset --hard FETCH_HEAD && \ | ||
pip install -r requirements.txt -c "$UPPER_CONSTRAINTS" && \ | ||
python setup.py install && \ | ||
cd / && \ | ||
rm -rf /python-monascaclient && \ | ||
rm -rf /root/.cache/pip && \ | ||
apk del build-dep | ||
|
||
RUN apk add --no-cache --virtual build-dep libxml2-dev libxslt-dev && \ | ||
/build.sh -r ${CLIENT_REPO} -b ${CLIENT_BRANCH} -q ${CONSTRAINTS_BRANCH} && \ | ||
monasca --version | ||
|
||
CMD ["sh"] |
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 |
---|---|---|
@@ -1,12 +1,30 @@ | ||
repository: monasca/client | ||
variants: | ||
- tag: latest | ||
- tag: 1.7.0 | ||
aliases: | ||
- :1.6.0 | ||
- :latest | ||
- :1.7 | ||
- :1 | ||
args: | ||
CLIENT_BRANCH: 1.7.0 | ||
PYTHON_VERSION: '2' | ||
TIMESTAMP_SLUG: 20170809-155207 | ||
CONSTRAINTS_BRANCH: master | ||
|
||
- tag: 1.6.0 | ||
aliases: | ||
- :1.6 | ||
args: | ||
CLIENT_BRANCH: 1.6.0 | ||
PYTHON_VERSION: '2' | ||
TIMESTAMP_SLUG: 20170809-155207 | ||
CONSTRAINTS_BRANCH: master | ||
|
||
- tag: master | ||
aliases: | ||
- :master-{date}-{time} | ||
args: | ||
CLIENT_BRANCH: master | ||
PYTHON_VERSION: '2' | ||
TIMESTAMP_SLUG: 20170809-155207 | ||
CONSTRAINTS_BRANCH: master |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
old tag should be removed