You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where `registry` is the URL of the registry (for example, an Azure registry whatever.acr.io). It can also be a Docker Hub username.
14
+
Where `registry` is the URL of the registry (for example, an Azure registry whatever.acr.io). For Docker Hub, just use your username.
15
15
16
-
The project version is the version of Zookeeper that you want to setup in the image. For instance "3.9.1", The list of versions is here: https://archive.apache.org/dist/zookeeper/
16
+
The project version is the version of Zookeeper that you want to setup in the image. For instance "3.9.3", The list of versions is here: https://archive.apache.org/dist/zookeeper/
17
17
18
18
Example:
19
19
```shell
20
20
cd docker/zookeeper
21
-
./build.sh -r merlos -v 3.9.1
21
+
./build.sh -r merlos -v 3.9.3
22
22
```
23
23
24
-
Alternatively it accepts `-p` to push the image to the registry `-t`` to create a different tag.
24
+
By default it does not push the image to the registry. You can add `-p` to push the image to the registry.
25
+
26
+
By default it creates the same tag as the version. You can use `-t` to create a different tag. For instance:
25
27
26
28
```shell
27
-
./build.sh -r merlos -v 3.9.1 -t 3.9.1-deb -p
29
+
./build.sh -r merlos -v 3.9.3 -t 3.9.3-deb -p
28
30
```
29
31
30
32
In this image:
31
33
* zookeeper is run by the user `zk`
32
-
*zookeper is installed in `/opt/zookeeper`
34
+
*zookeeper is installed in `/opt/zookeeper`
33
35
* Data is kept in `/var/lib/zookeeper`
34
36
* Output logs are kept in `/var/log/zookeeper/`
35
37
36
-
37
-
You have som images available in https://hub.docker.com/r/merlos/zookeeper
38
+
You have some images available in https://hub.docker.com/r/merlos/zookeeper
38
39
39
40
### Build Drill
40
41
41
42
Similarly, the folder `docker/drill` contains the `build.sh` script that builds, tags and uploads a docker image. It also takes two arguments:
# Available versions in https://repo1.maven.org/maven2/org/apache/hadoop/hadoop-azure/
108
+
RUN wget https://repo1.maven.org/maven2/org/apache/hadoop/hadoop-azure/${HADOOP_AZURE_VERSION}/hadoop-azure-${HADOOP_AZURE_VERSION}.jar -P /opt/drill/jars/3rdparty
109
+
# Ensure the integrity of the downloaded file (sha1)
110
+
RUN wget https://repo1.maven.org/maven2/org/apache/hadoop/hadoop-azure/${HADOOP_AZURE_VERSION}/hadoop-azure-${HADOOP_AZURE_VERSION}.jar.sha1 -P /opt/drill/jars/3rdparty
111
+
RUN cd /opt/drill/jars/3rdparty && echo $(cat hadoop-azure-${HADOOP_AZURE_VERSION}.jar.sha1) hadoop-azure-${HADOOP_AZURE_VERSION}.jar | sha1sum -c -
112
+
113
+
114
+
# Available versions in https://repo1.maven.org/maven2/com/microsoft/azure/azure-storage/
115
+
RUN wget https://repo1.maven.org/maven2/com/microsoft/azure/azure-storage/${AZURE_STORAGE_VERSION}/azure-storage-${AZURE_STORAGE_VERSION}.jar -P /opt/drill/jars/3rdparty
116
+
# Ensure the integrity of the downloaded file (sha1)
117
+
RUN wget https://repo1.maven.org/maven2/com/microsoft/azure/azure-storage/${AZURE_STORAGE_VERSION}/azure-storage-${AZURE_STORAGE_VERSION}.jar.sha1 -P /opt/drill/jars/3rdparty
118
+
RUN cd /opt/drill/jars/3rdparty && echo $(cat azure-storage-${AZURE_STORAGE_VERSION}.jar.sha1) azure-storage-${AZURE_STORAGE_VERSION}.jar | sha1sum -c -
52
119
53
-
# Set user to run the service
120
+
121
+
# Expose ports: Drill web UI, user port, control port and Data port
0 commit comments