-
Notifications
You must be signed in to change notification settings - Fork 14
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 base image to python-3.11.3 #455
base: main
Are you sure you want to change the base?
Conversation
53fbd49
to
c644ba0
Compare
e0bdb6e
to
5ed097a
Compare
6740395
to
e52ca1e
Compare
Blocked on aiidalab/aiidalab#428 |
Hi @danielhollas, I reconsidered if use jupyter stack as the base image is a good option, instead if we move to using aiida-core images could gaining more flexibility. Major two reasons are:
Let me know your opinion. |
Blocked on aiidalab/aiidalab#429 @unkcpz I've created #471, we shouldn't be discussing these foundational thing in PRs. |
Yep, just came to this PR when I start to try with notebook v7. Great you open an issue for this, I agree it is premature to move to that, this is just things come to my mind and want to get to know your opinions. Let’s have follow up discussion on the issue you opened.
Gesendet von Outlook für iOS<https://aka.ms/o0ukef>
…________________________________
Von: Daniel Hollas ***@***.***>
Gesendet: Saturday, June 22, 2024 7:12:18 PM
An: aiidalab/aiidalab-docker-stack ***@***.***>
Cc: Jusong Yu ***@***.***>; Mention ***@***.***>
Betreff: Re: [aiidalab/aiidalab-docker-stack] Update base image to python-3.10.11 (PR #455)
Blocked on aiidalab/aiidalab#429<aiidalab/aiidalab#429>
@unkcpz<https://github.com/unkcpz> I've created #471<#471>, we shouldn't be discussing these foundational thing in PRs.
—
Reply to this email directly, view it on GitHub<#455 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACDMFRJIEIKK6TADBBHT2JLZIWV7FAVCNFSM6AAAAABHVEF3JGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBUGEYTGMJSGI>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Yeah, if you want to start to play with NB7, you can start with this PR and set |
72023df
to
01e7258
Compare
mamba install --yes \ | ||
aiida-core==${AIIDA_VERSION} \ | ||
mamba-bash-completion \ | ||
traitlets=5.9.0 \ |
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.
The base image already comes with traitlets==5.9.0
163b706
to
cd167e5
Compare
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.
Thanks, @danielhollas. I just tried to run the container on my laptop, but it failed. My aiidalab-launch
config looks as follows:
port = 8892
default_apps = []
system_user = "jovyan"
image = "ghcr.io/aiidalab/full-stack:pr-455"
home_mount = "aiidalab_test-python-311_home"
extra_mounts = []
Here is the log containing the error:
...
+ _log '/usr/local/bin/start.sh: running script /usr/local/bin/before-notebook.d/20_start-postgresql.sh'
+ [[ /usr/local/bin/start.sh: running script /usr/local/bin/before-notebook.d/20_start-postgresql.sh == \E\R\R\O\R\:* ]]
+ [[ /usr/local/bin/start.sh: running script /usr/local/bin/before-notebook.d/20_start-postgresql.sh == \W\A\R\N\I\N\G\:* ]]
+ [[ '' == '' ]]
+ echo '/usr/local/bin/start.sh: running script /usr/local/bin/before-notebook.d/20_start-postgresql.sh'
+ source /usr/local/bin/before-notebook.d/20_start-postgresql.sh
/usr/local/bin/start.sh: running script /usr/local/bin/before-notebook.d/20_start-postgresql.sh
++ set -x
++ [[ -z /home/jovyan/.postgresql ]]
++ PSQL_LOGFILE=/home/jovyan/.postgresql/logfile
++ PSQL_START_CMD='pg_ctl --timeout=180 -w -l /home/jovyan/.postgresql/logfile start'
++ MAMBA_RUN='mamba run -n aiida-core-services'
++ [[ ! -d /home/jovyan/.postgresql ]]
++ chmod -R g-rwxs /home/jovyan/.postgresql
++ [[ -f /home/jovyan/.postgresql/logfile ]]
++ rm -f /home/jovyan/.postgresql/logfile.1.gz
++ mv /home/jovyan/.postgresql/logfile /home/jovyan/.postgresql/logfile.1
++ gzip /home/jovyan/.postgresql/logfile.1
++ rm -vf /home/jovyan/.postgresql/postmaster.pid
removed '/home/jovyan/.postgresql/postmaster.pid'
++ mamba run -n aiida-core-services pg_ctl --timeout=180 -w -l /home/jovyan/.postgresql/logfile start
pg_ctl: could not start server
Examine the log output.
ERROR conda.cli.main_run:execute(125): `conda run pg_ctl --timeout=180 -w -l /home/jovyan/.postgresql/logfile start` failed. (See above for error)
waiting for server to start.... stopped waiting
For your information: I have ARM architecture, but I doubt it is related.
@yakutovicha strange, it works for me. Have you pulled the latest version of the image? Can you dig up the postgres logs to see why it is failing? |
I just enabled the arm tests on this branch and they all passed. |
Closes #265
NOTE: Upgrading Python is a breaking change since the python dependencies of installed AiiDAlab Apps need to be reinstalled due, see #317