File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -13,16 +13,13 @@ RUN groupadd --system -g ${BUILDER_GID} ${BUILDER_GROUP} \
13
13
&& useradd --system --shell /bin/bash -u ${BUILDER_UID} -g ${BUILDER_GROUP} -d /var/lib/elastic -m elastic 1>/dev/null 2>/dev/null \
14
14
&& mkdir -p /code/elasticsearch-py && mkdir /code/elasticsearch-py/build \
15
15
&& chown -R ${BUILDER_USER}:${BUILDER_GROUP} /code/elasticsearch-py
16
-
17
16
COPY --chown=$BUILDER_USER:$BUILDER_GROUP . .
18
-
19
- USER ${BUILDER_USER}:${BUILDER_GROUP}
20
17
WORKDIR /code/elasticsearch-py
18
+ USER ${BUILDER_USER}:${BUILDER_GROUP}
21
19
COPY dev-requirements.txt .
22
20
RUN python -m pip install \
23
21
-U --no-cache-dir \
24
22
--disable-pip-version-check \
25
23
nox -rdev-requirements.txt
26
-
27
- COPY . .
28
- RUN python -m pip install -e .
24
+ COPY --chown=$BUILDER_USER:$BUILDER_GROUP . .
25
+ RUN python -m pip install -U -e .
Original file line number Diff line number Diff line change 116
116
echo -e " \033[34;1mINFO:\033[0m Starting container $node_name \033[0m"
117
117
set -x
118
118
docker run \
119
+ -u " $( id -u) " \
119
120
--name " $node_name " \
120
121
--network " $network_name " \
121
122
--env " ES_JAVA_OPTS=-Xms1g -Xmx1g -da:org.elasticsearch.xpack.ccr.index.engine.FollowingEngineAssertions" \
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ echo -e "\033[1m>>>>> Run [elastic/elasticsearch-py container] >>>>>>>>>>>>>>>>>
33
33
34
34
mkdir -p junit
35
35
docker run \
36
+ -u " $( id -u) " \
36
37
--network=${network_name} \
37
38
--env " STACK_VERSION=${STACK_VERSION} " \
38
39
--env " ELASTICSEARCH_URL=${elasticsearch_url} " \
You can’t perform that action at this time.
0 commit comments