Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Conversation

dmius
Copy link
Collaborator

@dmius dmius commented Jun 28, 2018

No description provided.

@dmius dmius requested a review from NikolayS June 28, 2018 21:56
else
if [ "$RUN_ON" = "localhost" ]; then
ln $1 "$TMP_PATH/pg_nancy_home_${CURRENT_TS}/" # TODO: option – hard links OR regular `cp`
ln $1 "$TMP_PATH/pg_nancy_home_${CURRENT_TS}/$containerHash/" # TODO: option – hard links OR regular `cp`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а вот тут CURRENT_TS же остаётся, т.е. опять непонятно будет, куда файлы складывать

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

На этот каталог у нас монтируется докер стр 531

containerHash=$(docker run --name="pg_nancy_${CURRENT_TS}" \
    -v $TMP_PATH/pg_nancy_home_${CURRENT_TS}:/machine_home \
    -dit "postgresmen/postgres-with-stuff:pg${PG_VERSION}" \

оставить $TMP_PATH/pg_nancy_home:/machine_home ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а серверные конфиги тогда не будут общими?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

смотри, снаружи я знаю ID контейнера, но не знаю CURRENT_TS
поэтому идея была монтировать сам $TMP_PATH как есть, для всех, а там уже работат ьв поддиректориях, чтобы не пересекаться

в такой схеме есть возможность и общие файлы использовать — то, что в самом $TMP_PATH

@NikolayS NikolayS merged commit 35ee4cd into master Jun 29, 2018
@NikolayS NikolayS deleted the dmius-container-hash branch June 29, 2018 03:01
@NikolayS NikolayS changed the title Use contaierHash in paths Use containerHash in paths Jun 29, 2018
NikolayS added a commit that referenced this pull request Sep 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants