Conversation
Contributor
|
I got an error message I don't quite understand what you mean by saying "detecting where we are". Do you mean the |
Member
Author
|
Can you try again now please @xiangli313? |
Contributor
|
In a meeting, will do in 30mins.
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: Rich FitzJohn <notifications@github.com>
Sent: Friday, April 27, 2018 10:00:14 AM
To: vimc/jenner
Cc: Li, Xiang; Mention
Subject: Re: [vimc/jenner] i1713: Fix path to password (#16)
Can you try again now please @xiangli313<https://github.com/xiangli313>?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#16 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AZuB9OFSy7djj1HddeA1asqnWYJGLKszks5tst4egaJpZM4Tjimo>.
|
Member
Author
|
OK, now in #!/usr/bin/env bash
set -ex
MONTAGU_NETWORK=montagu_default
MONTAGU_DOCKER=docker.montagu.dide.ic.ac.uk:5000
MONTAGU_DB_HOST=$(hostname)
MONTAGU_IMPORT_IMAGE=$MONTAGU_DOCKER/montagu-db-import:master
WORKDIR=/montagu-import
echo "*** Importing new 201801rft modelling group"
docker pull $MONTAGU_IMPORT_IMAGE
docker run --rm -it \
--network $MONTAGU_NETWORK \
-e MONTAGU_DB_HOST=$MONTAGU_DB_HOST \
-u `id -u $USER` \
-v ${PWD}:${WORKDIR} \
-w ${WORKDIR} \
${MONTAGU_IMPORT_IMAGE} \
Rscript --no-environ import.Rand within the import.R file we'd do con <- jenner::database_connection(NULL, "import")and that should wire everything up correctly. For local testing you will need an .Renviron file containing |
Contributor
|
I am setting the .Renviron as then I got error message regarding authentication |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Once this is merged, you will be able to do
and get a connection.
@xiangli313 - how should we update this so that it works most neatly from within an import script? Can you think of a good way of doing it detecting where we are so that the import.sh files can get a bit smaller again?