jornh
July 22, 2018, 9:47pm
11
@stefanb see the post below:
I had the same problem with the Docker installation. What I needed to do to fix it is:
Set MB_PLUGINS_DIR
Make sure the metabase account in the Docker container can actually access those files, for example chmod -R 777 ./plugins on the host. You can verify this with docker exec -it metabase ls -l /app/plugins.
I believe the reason your latest attempt with mounting the driver could be failing because the user:group metabase:metabase inside docker does not have permissions on the host volume - hence the need for chmod in the post.
Another guy just got it working with Docker like this (not sure the modified Docker layer is needed, but posting for completeness):
opened 05:34PM - 22 Jul 18 UTC
closed 08:34PM - 22 Jul 18 UTC
I checked for an existing issue and couldn't find any.
I saw this post: http… s://www.metabase.com/docs/v0.20.1/administration-guide/databases/oracle.html but I'm wondering how to add this without creating a new image from scratch. Has someone done this already?
I went through the following steps. The driver is definitely there, but it doesn't appear to recognize it in the setup. Help?
1. Create a new folder name it whatever you want and 'cd' to that directory
2. Copy the database driver there. (i.e. ojdbc6.jar)
3. Create a file called Dockerfile and enter the contents below:
```# dockerfile
FROM metabase/metabase
COPY ./ojdbc6.jar /app/plugins/ojdbc6.jar
ENTRYPOINT ["/app/run_metabase.sh"]
```
4. ls the directory to see:
```brians-air:metabase bbonner$ ls -al
total 5312
drwxr-xr-x 4 bbonner staff 136 Jul 22 12:53 .
drwxr-xr-x+ 120 bbonner staff 4080 Jul 22 12:38 ..
-rw-r--r--@ 1 bbonner staff 116 Jul 22 12:58 Dockerfile
-rw-r--r-- 1 bbonner staff 2714189 Jul 22 12:53 ojdbc6.jar
```
5. build the docker image and give it a tag: (i.e. optmetabase) using:
`docker build . -t optmetabase`
6. run the image:
`docker run -d -p 3000:3000 --name metabase optmetabase`
7. if desired, verify the plugins are installed with:
`docker exec -it metabase ls -lR /app/plugins`
```brians-air:metabase bbonner$ docker exec -it metabase ls -lR /app
/app:
total 112164
-rw-r--r-- 1 root root 114839203 May 12 18:31 metabase.jar
drwxr-xr-x 2 root root 4096 Jul 22 16:58 plugins
-rwxr-xr-x 1 root root 4984 Nov 28 2017 run_metabase.sh
/app/plugins:
total 2652
-rw-r--r-- 1 root root 2714189 Jul 22 16:53 ojdbc6.jar
```