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
CI: Use "docker run" for file manipulation, to prevent permission errors
Because the ZIP file has been created and unzipped with docker, manipulating it directly with
system commands fails with permission error:
mv: cannot move '/tmp/elasticsearch-c108b093b5a7da9b042d25969fd7339b86adc19f' to '/tmp/elasticsearch/': Operation not permitted
(cherry picked from commit dfe749d)
time docker run --rm appropriate/curl --retry 3 -sSL "https://github.com/elastic/elasticsearch/archive/$ELASTICSEARCH_BUILD_HASH.zip">"/tmp/elasticsearch-$ELASTICSEARCH_BUILD_HASH.zip"
50
+
echo -e ">>>>> Extracting and storing to [elasticsearch-source] container..."
51
+
time docker run --volume=/tmp:/tmp --workdir=/tmp --rm elastic/go-elasticsearch unzip -q -o "elasticsearch-$ELASTICSEARCH_BUILD_HASH.zip"'*.properties''*.json''*.y*ml'
52
+
docker run --volume=/tmp:/tmp --workdir=/tmp --rm elastic/go-elasticsearch /bin/sh -c "
0 commit comments