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
Fix Geminabox::VERSION instantiation failure #514
base: master
Are you sure you want to change the base?
Fix Geminabox::VERSION instantiation failure #514
Conversation
You should update this pull request by commenting on it. Otherwise the PR will be closed in 14 days. |
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.
LGTM
Since this PR is significantly updating the README instructions, I am wondering how I've messed this up, or if we need to also update the
Nevermind - I figured it out. This sentence is really easy to miss:
I had even read it, but I had no idea what Dockerfile it was referring to as it never told me to checkout the geminabox source code. Also it is self-contradictory.
It should instead be:
|
Another issue is that, once I have the docker image built it won't run, using the files as directed in the README. The error is
|
I also had some trouble getting the server to run outside of docker. Installing all the dependencies in the right places was not as simple as This is why I relied on using docker in the nelsnelson@neptuno:~/Documents/code$ git clone git@github.com:geminabox/geminabox.git
Cloning into 'geminabox'...
remote: Enumerating objects: 3163, done.
remote: Counting objects: 100% (47/47), done.
remote: Compressing objects: 100% (34/34), done.
remote: Total 3163 (delta 23), reused 33 (delta 13), pack-reused 3116
Receiving objects: 100% (3163/3163), 607.21 KiB | 3.49 MiB/s, done.
Resolving deltas: 100% (1756/1756), done.
nelsnelson@neptuno:~/Documents/code$ cd geminabox
nelsnelson@neptuno:~/Documents/code/geminabox[master]$ docker build -t geminabox .
[+] Building 9.9s (10/10) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 200B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/ruby:3.1.3 0.0s
=> [1/5] FROM docker.io/library/ruby:3.1.3 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 927.76kB 0.0s
=> CACHED [2/5] RUN mkdir -p /usr/src/app 0.0s
=> CACHED [3/5] WORKDIR /usr/src/app 0.0s
=> [4/5] COPY . /usr/src/app 0.0s
=> [5/5] RUN bundle install 9.7s
=> exporting to image 0.2s
=> => exporting layers 0.2s
=> => writing image sha256:4189fb024167d7f9f4f2c55dbcd01af424463ad68b4349bf4f4275d857faea5c 0.0s
=> => naming to docker.io/library/geminabox 0.0s
nelsnelson@neptuno:~/Documents/code/geminabox[master]$ docker run --name geminabox --rm -d -p 9292:9292 geminabox:latest
e170ad86e857c98ccc107074ce9c707013b03cc2895fbd19f995d8c5a314c118
nelsnelson@neptuno:~/Documents/code/geminabox[master]$ curl http://localhost:9292
<!DOCTYPE html>
<html>
<head>
<title>Gem in a Box</title>
<link rel="stylesheet" href="/master.css" type="text/css" media="screen">
<link href="/atom.xml" type="application/atom+xml" rel="alternate" title="Atom Feed">
</head>
<body>
<div id="content">
<h1>Gem in a Box</h1>
<p>
<small>If you did not need any credentials to get to this page</small>
<pre><code>gem sources -a http://localhost:9292/</code></pre>
<small>If you needed some credentials to get to this page</small>
<pre><code>gem sources -a http://username:password@localhost:9292/</code></pre>
<small>and then ...</small>
<pre><code>gem install geminabox<br />gem inabox [gemfile]</code></pre>
</p>
<a href="http://localhost:9292/upload">Upload Another Gem</a>
<script type="text/javascript" src="/master.js"></script>
</div>
</body>
</html>
nelsnelson@neptuno:~/Documents/code/geminabox[master]$ docker stop geminabox
geminabox
nelsnelson@neptuno:~/Documents/code/geminabox[master]$ docker ps | grep geminabox
nelsnelson@neptuno:~/Documents/code/geminabox[master]$ |
79b891c
to
4d34b66
Compare
I've updated the fork branch commit message to ensure that it includes the phrase "closes #506" but the issue still includes no reference to this PR. I'm perplexed. [Screenshot from: https://github.com//issues/506] |
Oh, lol I think it is because #506 is already closed! Anyways, thanks for your steps. I'll try that. Would be great to get the readme into a state where a copy pasta setup is functional! |
You should update this pull request by commenting on it. Otherwise the PR will be closed in 14 days. |
Is there any way that the related pull request could get accepted and this issue subsequently closed appropriately? |
@tnir This fix is important. Commenting to keep the PR from going stale! |
You should update this pull request by commenting on it. Otherwise the PR will be closed in 14 days. |
Commenting to keep the PR from going stale. |
Commenting on this PR to prevent it from going stale. |
4d34b66
to
8237b6e
Compare
Looks like we in for a bump every 2 months... unless @tnir can rescue us from the slog. |
I wish I understood what went wrong. I thought I had linked the issue to this PR through the commit message. That worked right? Are we just waiting on the project owner to accept this PR? |
Looks like on Jul 16 @tnir re-opened the linked issue, so now the PR and the issue are in fact linked. Not sure what the next steps are. |
You should update this pull request by commenting on it. Otherwise the PR will be closed in 14 days. |
Burp. |
You should update this pull request by commenting on it. Otherwise the PR will be closed in 14 days. |
Particle accelerators. |
You should update this pull request by commenting on it. Otherwise the PR will be closed in 14 days. |
Meridian lines are tedious abstractions of interstellar malfeasance. |
You should update this pull request by commenting on it. Otherwise the PR will be closed in 14 days. |
Bumping, please merge the linked PR. |
@tnir Can we turn off the stale bot? |
See: #506
Getting the following error when using
bundler
to install and rungeminabox
.Problem is that even though the
version.rb
module is being required and loaded successfully, some constantVERSION
is already defined, and so theGeminabox
module never gets to define its version becauseunless defined? VERSION
evaluates tofalse
.