Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Incorporated docker test build
  • Loading branch information
mooshu1x2 committed Oct 20, 2016
1 parent 0e8d079 commit 2485e801621139daff03d08c46d5ca083ee71ba3
Showing 5 changed files with 74 additions and 13 deletions.
@@ -0,0 +1,29 @@
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Apache UserALE.PyQt5 Docker build

version: "2"
services:
dev:
build:
context: .
dockerfile: ./docker/dev/Dockerfile
container_name: dev
test:
build:
context: .
dockerfile: ./docker/test/Dockerfile
container_name: test
@@ -13,21 +13,18 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Ubuntu Xenial 16.04 [LTS]
FROM ubuntu:16.04
# Python 3.5 Base Image
FROM python:3.5
MAINTAINER Michelle Beard <msbeard@apache.org>

# Install Deps
RUN apt-get update -yqq && \
apt-get install -yqq python3-dev python3-pip qt5-default && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

COPY requirements.txt /opt/userale
RUN mkdir /code
WORKDIR /code

WORKDIR /opt
ADD requirements.txt /code

# Install requirements
RUN pip3 install -r requirements.txt

#CMD ["python", "./setup.py", "develop"]
ADD . /code/

RUN python3 setup.py develop || exit 0
@@ -0,0 +1,35 @@
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Python 3.5 Base Image
FROM python:3.5
MAINTAINER Michelle Beard <msbeard@apache.org>

RUN mkdir /code
WORKDIR /code

ADD requirements.txt /code
ADD test_requirements.txt /code
ADD docker/test/run_tests.sh /code/run_tests.sh
RUN chmod +x /code/run_tests.sh

# Install requirements
RUN pip3 install -r requirements.txt
RUN pip3 install -r test_requirements.txt

ADD . /code/

RUN python3 setup.py test || exit 0
RUN pylint userale/ --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" > /code/pylint.log || exit 0
@@ -14,4 +14,4 @@
# limitations under the License.

requests>=2.0.0
pyqt5==5.6
PyQt5==5.7
@@ -65,7 +65,7 @@ def get_version():
include_package_data=True,
zip_safe=False,
tests_require=['pytest>=3.0.0', 'pytest-pylint', 'coverage'],
install_requires=['pyqt5==5.6', 'requests>=2.0.0'],
install_requires=['pyqt5==5.7', 'requests>=2.0.0'],
entry_points={
'console_scripts': [
'mouse = userale.examples.testapp:test_app',

0 comments on commit 2485e80

Please sign in to comment.