-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update VM #5
Conversation
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc | ||
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc | ||
echo 'eval "$(pyenv init -)"' >> ~/.bashrc | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bethac07 said:
This system [I am working with] had a bash_profile
and a profile
and bash_profile
had only dumb stuff in it but was keeping profile
from being run, and profile
was what was telling bashrc
to source
I think you may run into the same issue here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(solution is just to keep putting everything into barshrc rather than bash_profile
)
libfftw3-dev \ | ||
libldap2-dev \ | ||
libpq-dev \ | ||
libreadline7 \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could not get this to apt-get install on Ubuntu 20.04
emacs \ | ||
htop \ | ||
jq \ | ||
mysql-client-core-5.7 \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could not get this to apt-get install on Ubuntu 20.04
cd ~/work/software/archives | ||
|
||
git clone https://github.com/yyuu/pyenv.git ~/.pyenv |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that there is https://github.com/pyenv/pyenv
, should we use that instead?
mkdir ~/bucket | ||
|
||
echo "${BUCKET_ID} /home/ubuntu/bucket fuse.s3fs _netdev,allow_other,iam_role=${S3_ROLE},uid=1000,gid=1000,umask=0022 0 0" | sudo tee --append /etc/fstab |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may want to, rather than setting the IAM role up front, use iam_role=default
in the S3 attachment, and it will pull from whatever role was attached to the machine upon launch. Good news is that you don't need to know it during Packer build, and if you want to change IAM roles you don't need to regenerate the entire machine; bad news is that it relies on the user making smart choices when they start the machine.
sudo apt-get install -y \ | ||
cloud-image-utils \ | ||
fabric |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can delete all of this
@@ -8,15 +8,15 @@ | |||
}, | |||
"builders": [{ | |||
"access_key": "{{user `aws_access_key`}}", | |||
"ami_name": "cytomining/images/hvm-ssd/cytominer-ubuntu-trusty-14.04-amd64-server-{{timestamp}}", | |||
"ami_name": "cytomining/images/hvm-ssd/cytominer-ubuntu-bionic-18.04-amd64-server-{{timestamp}}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we consider 20.04?
eval "$(pyenv init -)" | ||
|
||
pyenv install 3.5.1 | ||
pyenv install 2.7.12 | ||
pyenv install 3.8.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Likely want to do at least the most up-to-date 3.8 build
@@ -2,56 +2,105 @@ | |||
|
|||
#----------------------------- | |||
# Python | |||
#----------------------------- | |||
|
|||
sudo apt-get install -y \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't need any of these now, but we should grab python3-pip
Closed in favor of #6 |
#4