Skip to content
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

Closed
wants to merge 11 commits into from
Closed

Update VM #5

wants to merge 11 commits into from

Conversation

shntnu
Copy link
Member

@shntnu shntnu commented May 3, 2020

#4

@shntnu shntnu linked an issue Mar 2, 2021 that may be closed by this pull request
13 tasks
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(pyenv init -)"' >> ~/.bashrc

Copy link
Member Author

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

Copy link
Member

@bethac07 bethac07 Apr 6, 2021

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 \
Copy link
Member

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 \
Copy link
Member

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
Copy link
Member

@bethac07 bethac07 Apr 6, 2021

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
Copy link
Member

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.

Comment on lines +82 to +84
sudo apt-get install -y \
cloud-image-utils \
fabric
Copy link
Member

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}}",
Copy link
Member

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
Copy link
Member

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

r.sh Show resolved Hide resolved
r.sh Show resolved Hide resolved
@@ -2,56 +2,105 @@

#-----------------------------
# Python
#-----------------------------

sudo apt-get install -y \
Copy link
Member

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

@shntnu
Copy link
Member Author

shntnu commented Jun 18, 2021

Closed in favor of #6

@shntnu shntnu closed this Jun 18, 2021
@shntnu shntnu deleted the issues/4 branch June 18, 2021 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update VM
2 participants