Skip to content

Commit d7b12fe

Browse files
committed
WIP Django CI
1 parent 6e4a006 commit d7b12fe

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

xenial_django_ci/Dockerfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
FROM iancolwell/xenial_user
2+
3+
USER root
4+
5+
ENV DEBIAN_FRONTEND noninteractive
6+
ENV TERM xterm
7+
8+
# RUN echo "resolvconf resolvconf/linkify-resolvconf boolean false" | debconf-set-selections
9+
# RUN apt-get update && apt-get install -y ubuntu-minimal ubuntu-standard ubuntu-desktop
10+
11+
RUN apt-get update && apt-get install -y \
12+
debconf-utils \
13+
software-properties-common
14+
15+
RUN echo "mysql-server mysql-server/root_password password LocalPPUpw" | debconf-set-selections
16+
RUN echo "mysql-server mysql-server/root_password_again password LocalPPUpw" | debconf-set-selections
17+
18+
RUN apt-get install -y mysql-server mysql-client libmysqlclient-dev python-mysqldb python-pip
19+
20+
RUN apt-get -y upgrade
21+
22+
USER user
23+
24+
CMD
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
set -e
3+
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
4+
5+
cd "$SCRIPT_DIR"
6+
7+
docker build -t iancolwell/xenial_django_ci:latest .
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
set -e
3+
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
4+
5+
cd "$SCRIPT_DIR"
6+
7+
docker tag xenial_user iancolwell/xenial_desktop
8+
docker push iancolwell/xenial_desktop

0 commit comments

Comments
 (0)