Skip to content

Commit 5710dd9

Browse files
committed
Initial commit
0 parents  commit 5710dd9

File tree

4 files changed

+71
-0
lines changed

4 files changed

+71
-0
lines changed

Dockerfile

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
FROM ubuntu:15.04
2+
3+
MAINTAINER Jordan Schatz "[email protected]"
4+
5+
# Let apt know that we will be running non-interactively.
6+
ENV DEBIAN_FRONTEND noninteractive
7+
8+
# Setup i386 architecture
9+
RUN dpkg --add-architecture i386; \
10+
echo 'deb http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu vivid main' \
11+
>> /etc/apt/sources.list; \
12+
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5A9A06AEF9CB8DB0
13+
14+
# Get the latest WINE
15+
RUN apt-get update; apt-get install -y wine1.7 winetricks wine-mono4.5.6 wine-gecko2.34
16+
17+
# Set the locale and timezone.
18+
RUN localedef -v -c -i en_US -f UTF-8 en_US.UTF-8 || :
19+
RUN echo "America/Los_Angeles" > /etc/timezone
20+
RUN dpkg-reconfigure -f noninteractive tzdata
21+
22+
# Create a user inside the container, what has the same UID as your
23+
# user on the host system, to permit X11 socket sharing / GUI Your ID
24+
# is probably 1000, but you can find out by typing `id` at a terminal.
25+
RUN export uid=1000 gid=1000 && \
26+
mkdir -p /home/docker && \
27+
echo "docker:x:${uid}:${gid}:Docker,,,:/home/docker:/bin/bash" >> /etc/passwd && \
28+
echo "docker:x:${uid}:" >> /etc/group && \
29+
echo "docker ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/docker && \
30+
chmod 0440 /etc/sudoers.d/docker && \
31+
chown ${uid}:${gid} -R /home/docker
32+
33+
ENV HOME /home/docker
34+
WORKDIR /home/docker
35+
36+
# Add the ynab installer to the image.
37+
ADD ["http://www.youneedabudget.com/CDNOrigin/download/ynab4/liveCaptive/Win/YNAB%204_4.3.729_Setup.exe", "ynab_setup.exe"]
38+
39+
# When it is added via the dockerfile it is owned read+write only by root
40+
RUN chown docker:docker ynab_setup.exe
41+
42+
USER docker

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# README
2+
3+
Build the docker container:
4+
5+
`docker build -t YOUR-CONTAINER-NAME https://github.com/shofetim/ynab`
6+
7+
## FAQ
8+
9+
### Wine cannot start x?
10+
11+
This seems to be a permissions issue on latest versions of Ubuntu, try:
12+
13+
`xhost +`

docker-compose.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
ynab:
2+
image: shofetim/ynab
3+
command: wine .wine/drive_c/Program\ Files\ \(x86\)/YNAB\ 4/YNAB\ 4.exe
4+
volumes:
5+
# Mount the X11 socket so that we can share graphics with the host system
6+
- /tmp/.X11-unix:/tmp/.X11-unix
7+
#- ~/.Xauthority:/home/docker/.Xauthority
8+
# Map the YNAB folder on the host to the YNAB folder in the container
9+
#- ~/YNAB:/home/docker/YNAB
10+
environment:
11+
# Pass through the hosts DISPLAY env setting
12+
- DISPLAY
13+
# Sometimes YNAB wants to render a pop-up/pop-under that kills the
14+
# process due to a problem with OpenGL (most likely). Setting this
15+
# may make rendering slower, but it makes it more reliable.
16+
- LIBGL_ALWAYS_SOFTWARE=1

ynab.png

25.4 KB
Loading

0 commit comments

Comments
 (0)