# Retain launcher command past an image download?

**URL:** https://meta.discourse.org/t/retain-launcher-command-past-an-image-download/45555
**Category:** Bug
**Created:** [6월 11, 2016, 2:51오전 UTC](https://meta.discourse.org/t/retain-launcher-command-past-an-image-download/45555 "2016-06-11T02:51:58Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)
#### Post date: [6월 11, 2016, 2:51오전 UTC](https://meta.discourse.org/t/retain-launcher-command-past-an-image-download/45555/1 "2016-06-11T02:51:58Z")

</div>

Mentioned here: (that’s for pointing it out @fefrei

> [@Git pull needed?](https://meta.discourse.org/t/git-pull-needed/42928/3):
>
> Also, @sam taught the launcher to update itself in March 2015:  
> [re-exec self if we are out of date · discourse/discourse\_docker@098533c · GitHub](https://github.com/discourse/discourse_docker/commit/098533cb0b2bbea0e55ead77f7bc1b8c668965c0)

I just tried this, and after an image pull, `./launcher` forgot what it was supposed to be doing.

```plaintext
<snip>
Status: Downloaded newer image for discourse/discourse:1.3.5
Usage: launcher COMMAND CONFIG [--skip-prereqs] [--docker-args STRING]
Commands:
    start: Start/initialize a container
    stop: Stop a running container
...

```

Full command output here: [discourse-upgrade.log · GitHub](https://gist.github.com/YesThatAllen/0eb80062b913469ae7d415fe1ec73483)

re-running `./launcher rebuild app` worked fine, but if that could have been preserved past the image download, that’d have been extra sweet.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [6월 11, 2016, 4:10오전 UTC](https://meta.discourse.org/t/retain-launcher-command-past-an-image-download/45555/2 "2016-06-11T04:10:22Z")

</div>

Yeah someone broke this ☹ I need to fix

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [6월 2, 2017, 6:29오후 UTC](https://meta.discourse.org/t/retain-launcher-command-past-an-image-download/45555/3 "2017-06-02T18:29:02Z")

</div>

This is working now, just tested it.

```plaintext
sam@ubuntu discourse_docker % git reset --hard HEAD~2
HEAD is now at ac9d4df FIX: Show proper version on /VERSION file
sam@ubuntu discourse_docker % ./launcher rebuild app
Ensuring launcher is up to date
Fetching origin
Updating Launcher
Updating ac9d4df..e7696e0
Fast-forward
 image/discourse/Dockerfile | 18 ------------------
 launcher | 2 +-
 2 files changed, 1 insertion(+), 19 deletions(-)
 delete mode 100644 image/discourse/Dockerfile
Ensuring launcher is up to date
Fetching origin
Launcher is up-to-date
cd /pups && git pull && /pups/bin/pups --stdin

```

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [6월 2, 2017, 6:29오후 UTC](https://meta.discourse.org/t/retain-launcher-command-past-an-image-download/45555/4 "2017-06-02T18:29:04Z")

</div>


